2024-05-15 15:35:15 +00:00
|
|
|
{ lib, symlinkJoin, makeWrapper, parallel, perlPackages
|
2021-10-17 02:12:59 +00:00
|
|
|
, extraPerlPackages ? with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
|
|
|
|
, willCite ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
symlinkJoin {
|
|
|
|
name = "parallel-full-${parallel.version}";
|
|
|
|
inherit (parallel) pname version meta outputs;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
paths = [ parallel ];
|
|
|
|
postBuild = ''
|
|
|
|
${lib.concatMapStringsSep "\n" (output: "ln -s --no-target-directory ${parallel.${output}} \$${output}") (lib.remove "out" parallel.outputs)}
|
|
|
|
|
|
|
|
rm $out/bin/parallel
|
|
|
|
makeWrapper ${parallel}/bin/parallel $out/bin/parallel \
|
|
|
|
--set PERL5LIB "${perlPackages.makeFullPerlPath extraPerlPackages}" \
|
|
|
|
${lib.optionalString willCite "--add-flags --will-cite"}
|
|
|
|
'';
|
|
|
|
}
|