mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
5bca69ac34
Unneded args.something replaced with args: with args; line. After this line args is the only place where we can recieve variables from. Also removed several buildInputs = []; lines. svn path=/nixpkgs/trunk/; revision=10415
21 lines
362 B
Nix
21 lines
362 B
Nix
args: with args;
|
|
stdenv.mkDerivation {
|
|
name = "shebangfix-0.0";
|
|
|
|
buildInputs = [perl];
|
|
|
|
file = ./shebangfix.pl;
|
|
|
|
phases = "buildPhase";
|
|
|
|
buildPhase = "
|
|
ensureDir \$out/bin
|
|
s=\$out/bin/shebangfix
|
|
cp \$file \$s
|
|
chmod +x \$s
|
|
perl \$s \$s
|
|
";
|
|
|
|
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
|
|
}
|