mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
23 lines
372 B
Nix
23 lines
372 B
Nix
{ stdenv, perl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "shebangfix-0.0";
|
|
|
|
buildInputs = [perl];
|
|
|
|
file = ./shebangfix.pl;
|
|
|
|
phases = "buildPhase";
|
|
|
|
buildPhase = ''
|
|
mkdir -p $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 "; };
|
|
}
|