mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
parallel: fix broken shebangs to /usr/bin/perl
Adding perl to buildInputs accomplishes this for us automatically.
This commit is contained in:
parent
0edd78f7bc
commit
424dc0138d
@ -8,11 +8,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0afk1q8mqzz02h6imyykgi9gwk5gj08hzs6lwgd65ilj4slkh93s";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
sed -i 's,#![ ]*/usr/bin/env[ ]*perl,#!${perl}/bin/perl,' $out/bin/*
|
||||
nativeBuildInputs = [ makeWrapper perl ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/parallel \
|
||||
${if stdenv.isLinux then ("--prefix PATH \":\" ${procps}/bin") else ""} \
|
||||
--prefix PATH : "${perl}/bin" \
|
||||
|
Loading…
Reference in New Issue
Block a user