1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/tools/misc/parallel/wrapper.nix

14 lines
383 B
Nix
Raw Normal View History

{ parallel, makeWrapper , runCommand
, perlPackages
, extraPerlPackages ?
with perlPackages; [ DBI DBDPg DBDSQLite DBDCSV TextCSV ]
}:
runCommand "parallel-full" {
nativeBuildInputs = [ makeWrapper ];
} ''
mkdir -p $out/bin
makeWrapper ${parallel}/bin/parallel $out/bin/parallel \
--set PERL5LIB "${perlPackages.makeFullPerlPath extraPerlPackages}"
''