parallel: fix broken shebangs to /usr/bin/perl

Adding perl to buildInputs accomplishes this for us automatically.
This commit is contained in:
Peter Simons 2017-06-13 22:28:05 +02:00
parent 0edd78f7bc
commit 424dc0138d

View File

@ -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" \