1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/misc/shebangfix/default.nix
Yury G. Kudryashov 7b3c313ec6 Fixed shebangfix
svn path=/nixpkgs/branches/stdenv-updates/; revision=10581
2008-02-10 17:37:38 +00:00

22 lines
371 B
Nix

args: with args;
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 "; };
}