1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Fixed shebangfix

svn path=/nixpkgs/branches/stdenv-updates/; revision=10581
This commit is contained in:
Yury G. Kudryashov 2008-02-10 17:37:38 +00:00
parent 6edb12e639
commit 7b3c313ec6

View file

@ -8,13 +8,14 @@ stdenv.mkDerivation {
phases = "buildPhase";
buildPhase = "
ensureDir \$out/bin
s=\$out/bin/shebangfix
cp \$file \$s
chmod +x \$s
perl \$s \$s
";
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 "; };
}