77976348d2
GitOrigin-RevId: 9aeeb7574fb784eaf6395f4400705b5f619e6cc3
10 lines
446 B
Nix
10 lines
446 B
Nix
{ lib, runCommand, makeWrapper, parallel, perlPackages
|
|
, extraPerlPackages ? with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
|
|
, willCite ? false }:
|
|
|
|
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"}
|
|
''
|