2021-01-23 22:47:55 +01:00
|
|
|
{ lib, runCommand, makeWrapper, parallel, perlPackages
|
|
|
|
, extraPerlPackages ? with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
|
|
|
|
, willCite ? false }:
|
2020-04-03 10:49:28 +02:00
|
|
|
|
2021-01-23 22:47:55 +01:00
|
|
|
runCommand "parallel-full" { nativeBuildInputs = [ makeWrapper ]; } ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${parallel}/bin/parallel $out/bin/parallel \
|
|
|
|
--set PERL5LIB "${perlPackages.makeFullPerlPath extraPerlPackages}" \
|
|
|
|
${lib.optionalString willCite "--add-flags --will-cite"}
|
|
|
|
''
|