2008-01-30 18:20:48 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-11-14 20:07:38 +01:00
|
|
|
name = "shebangfix-0.0";
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
buildInputs = [perl];
|
2007-11-14 20:07:38 +01:00
|
|
|
|
|
|
|
file = ./shebangfix.pl;
|
|
|
|
|
|
|
|
phases = "buildPhase";
|
|
|
|
|
2008-02-04 13:07:27 +01:00
|
|
|
buildPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
s=$out/bin/shebangfix
|
|
|
|
cp $file $s
|
|
|
|
chmod +wx $s
|
|
|
|
ls -l $s
|
|
|
|
perl $s $s
|
|
|
|
'';
|
2007-11-14 20:07:38 +01:00
|
|
|
|
|
|
|
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
|
|
|
|
}
|