Merge pull request #304018 from amarshall/parallel-full-improve
parallel-full: fix missing files
This commit is contained in:
commit
53717915c9
1 changed files with 15 additions and 7 deletions
|
@ -1,10 +1,18 @@
|
||||||
{ lib, runCommand, makeWrapper, parallel, perlPackages
|
{ lib, symlinkJoin, makeWrapper, parallel, perlPackages
|
||||||
, extraPerlPackages ? with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
|
, extraPerlPackages ? with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
|
||||||
, willCite ? false }:
|
, willCite ? false }:
|
||||||
|
|
||||||
runCommand "parallel-full" { nativeBuildInputs = [ makeWrapper ]; } ''
|
symlinkJoin {
|
||||||
mkdir -p $out/bin
|
name = "parallel-full-${parallel.version}";
|
||||||
makeWrapper ${parallel}/bin/parallel $out/bin/parallel \
|
inherit (parallel) pname version meta outputs;
|
||||||
--set PERL5LIB "${perlPackages.makeFullPerlPath extraPerlPackages}" \
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
${lib.optionalString willCite "--add-flags --will-cite"}
|
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"}
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue