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";
|
|
|
|
|
|
|
|
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 "; };
|
|
|
|
}
|