parallel: Fix some needed dependencies

This commit is contained in:
William A. Kennington III 2015-08-29 10:49:00 -07:00
parent be1d6923a8
commit 4121c5064a

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, perl }: { fetchurl, stdenv, perl, makeWrapper, procps }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "parallel-20150822"; name = "parallel-20150822";
@ -8,13 +8,14 @@ stdenv.mkDerivation rec {
sha256 = "1ij7bjxhk2866mzh0v0v2m629b6d39r5ivwdzmh72s471m9hg45d"; sha256 = "1ij7bjxhk2866mzh0v0v2m629b6d39r5ivwdzmh72s471m9hg45d";
}; };
patchPhase = '' nativeBuildInputs = [ makeWrapper ];
sed -i "src/parallel" -e's|/usr/bin/perl|${perl}/bin/perl|g'
'';
# The `sem' program wants to write to `~/.parallel'. preFixup = ''
preBuild = '' sed -i 's,#![ ]*/usr/bin/env[ ]*perl,#!${perl}/bin/perl,' $out/bin/*
export HOME="$PWD"
wrapProgram $out/bin/parallel \
--prefix PATH : "${procps}/bin" \
--prefix PATH : "${perl}/bin" \
''; '';
doCheck = true; doCheck = true;