parallel: fix patch-shebangs

For patch-shebangs to work we need perl to be listed as a build input because it will run on the target system, not the build one.

Fixes #46476

/cc @dtzWill
This commit is contained in:
Matthew Bauer 2018-09-16 17:25:42 -05:00 committed by GitHub
parent a4630c65ca
commit 72cfa07dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,12 +8,12 @@ stdenv.mkDerivation rec {
sha256 = "0jjs7fpvdjjb5v0j39a6k7hq9h5ap3db1j7vg1r2dq4swk23h9bm";
};
nativeBuildInputs = [ makeWrapper perl ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl procps ];
postInstall = ''
wrapProgram $out/bin/parallel \
--prefix PATH : "${procps}/bin" \
--prefix PATH : "${perl}/bin" \
--prefix PATH : "${stdenv.lib.makeBinPath [ procps perl ]}"
'';
doCheck = true;