2008-01-30 17:20:48 +00:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-11-14 19:07:38 +00:00
|
|
|
name = "shebangfix-0.0";
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
buildInputs = [perl];
|
2007-11-14 19:07:38 +00: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 "; };
|
|
|
|
}
|