3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/shebangfix/default.nix
Michael Raskin cc1a66d42d Fixed shebangfix
svn path=/nixpkgs/trunk/; revision=10492
2008-02-04 12:07:27 +00:00

22 lines
371 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 +wx $s
ls -l $s
perl $s $s
'';
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
}