nixpkgs/pkgs/tools/misc/parallel/wrapper.nix
tomberek 939976a929
parallel-full: init SQL and CSV support (#77619)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-04-03 09:49:28 +01:00

14 lines
383 B
Nix

{ 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}"
''