1 { fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils, gawk, buildPackages }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/parallel/parallel-${version}.tar.bz2";
9 hash = "sha256-YyEHFei3xeEp4JjzM8183V/HovMl6OD7ntbtup8ay8Q=";
12 outputs = [ "out" "man" "doc" ];
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ perl procps ];
17 postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
18 substituteInPlace Makefile.in \
19 --replace '$(DESTDIR)$(bindir)/parallel --shell-completion' '${lib.getExe buildPackages.parallel} --shell-completion'
23 patchShebangs ./src/parallel
27 wrapProgram $out/bin/parallel \
28 --prefix PATH : "${lib.makeBinPath [ procps perl coreutils gawk ]}"
34 description = "Shell tool for executing jobs in parallel";
36 GNU Parallel is a shell tool for executing jobs in parallel. A job
37 is typically a single command or a small script that has to be run
38 for each of the lines in the input. The typical input is a list of
39 files, a list of hosts, a list of users, or a list of tables.
41 If you use xargs today you will find GNU Parallel very easy to use.
42 If you write loops in shell, you will find GNU Parallel may be able
43 to replace most of the loops and make them run faster by running
44 jobs in parallel. If you use ppss or pexec you will find GNU
45 Parallel will often make the command easier to read.
47 GNU Parallel makes sure output from the commands is the same output
48 as you would get had you run the commands sequentially. This makes
49 it possible to use output from GNU Parallel as input for other
52 homepage = "https://www.gnu.org/software/parallel/";
53 license = licenses.gpl3Plus;
54 platforms = platforms.all;
55 maintainers = with maintainers; [ pSub tomberek ];
56 mainProgram = "parallel";