2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, perl }:
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
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 = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2008-02-04 13:07:27 +01:00
|
|
|
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 "; };
|
|
|
|
}
|