diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-11 12:01:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 12:01:38 +0000 |
commit | 06a521308bdbbbf667c7ec410cb2d9b2d5a1826f (patch) | |
tree | 51bc4cb3b49d3b619a434760271b2c6f15bcfc64 /pkgs/tools/misc/parallel | |
parent | 712ddf7d0d4d252d76e51daf950583b1a14b4d86 (diff) | |
parent | 12da532fe3d9434f6e2370e8c2be437a2683fd56 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/misc/parallel')
-rw-r--r-- | pkgs/tools/misc/parallel/wrapper.nix | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/tools/misc/parallel/wrapper.nix b/pkgs/tools/misc/parallel/wrapper.nix index 0240f1ac9e9ec..b798a1acea227 100644 --- a/pkgs/tools/misc/parallel/wrapper.nix +++ b/pkgs/tools/misc/parallel/wrapper.nix @@ -1,10 +1,18 @@ -{ lib, runCommand, makeWrapper, parallel, perlPackages +{ lib, symlinkJoin, 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"} -'' +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"} + ''; +} |