forked from mirrors/nixpkgs
Fixed shebangfix
svn path=/nixpkgs/trunk/; revision=10492
This commit is contained in:
parent
6d07280263
commit
cc1a66d42d
|
@ -8,13 +8,14 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
phases = "buildPhase";
|
phases = "buildPhase";
|
||||||
|
|
||||||
buildPhase = "
|
buildPhase = ''
|
||||||
ensureDir \$out/bin
|
ensureDir $out/bin
|
||||||
s=\$out/bin/shebangfix
|
s=$out/bin/shebangfix
|
||||||
cp \$file \$s
|
cp $file $s
|
||||||
chmod +x \$s
|
chmod +wx $s
|
||||||
perl \$s \$s
|
ls -l $s
|
||||||
";
|
perl $s $s
|
||||||
|
'';
|
||||||
|
|
||||||
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
|
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue