Skip to content

Commit 424dc01

Browse files
committedJun 13, 2017
parallel: fix broken shebangs to /usr/bin/perl
Adding perl to buildInputs accomplishes this for us automatically.
1 parent 0edd78f commit 424dc01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎pkgs/tools/misc/parallel/default.nix

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ stdenv.mkDerivation rec {
88
sha256 = "0afk1q8mqzz02h6imyykgi9gwk5gj08hzs6lwgd65ilj4slkh93s";
99
};
1010

11-
nativeBuildInputs = [ makeWrapper ];
12-
13-
preFixup = ''
14-
sed -i 's,#![ ]*/usr/bin/env[ ]*perl,#!${perl}/bin/perl,' $out/bin/*
11+
nativeBuildInputs = [ makeWrapper perl ];
1512

13+
postInstall = ''
1614
wrapProgram $out/bin/parallel \
1715
${if stdenv.isLinux then ("--prefix PATH \":\" ${procps}/bin") else ""} \
1816
--prefix PATH : "${perl}/bin" \

0 commit comments

Comments
 (0)
Please sign in to comment.