nixpkgs/pkgs/tools/misc/shebangfix/default.nix
Eelco Dolstra 6609710409 * Get rid of many instances of "args: with args;", and other coding
guidelines violations.
* Updated libsamplerate to 0.1.7.

svn path=/nixpkgs/trunk/; revision=22782
2010-07-28 11:55:54 +00:00

23 lines
373 B
Nix

{ stdenv, perl }:
stdenv.mkDerivation {
name = "shebangfix-0.0";
buildInputs = [perl];
file = ./shebangfix.pl;
phases = "buildPhase";
buildPhase = ''
ensureDir $out/bin
s=$out/bin/shebangfix
cp $file $s
chmod +wx $s
ls -l $s
perl $s $s
'';
meta = { description = "replaces the #!executable with $#!correctpath/executable "; };
}