1 { fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/parallel/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-35PM9qn1Ka0hJrcEKu8EhmA+k4x3tAWTnEFwLTik5tg=";
12 outputs = [ "out" "man" "doc" ];
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ perl procps ];
18 wrapProgram $out/bin/parallel \
19 --prefix PATH : "${lib.makeBinPath [ procps perl coreutils ]}"
25 description = "Shell tool for executing jobs in parallel";
27 '' GNU Parallel is a shell tool for executing jobs in parallel. A job
28 is typically a single command or a small script that has to be run
29 for each of the lines in the input. The typical input is a list of
30 files, a list of hosts, a list of users, or a list of tables.
32 If you use xargs today you will find GNU Parallel very easy to use.
33 If you write loops in shell, you will find GNU Parallel may be able
34 to replace most of the loops and make them run faster by running
35 jobs in parallel. If you use ppss or pexec you will find GNU
36 Parallel will often make the command easier to read.
38 GNU Parallel makes sure output from the commands is the same output
39 as you would get had you run the commands sequentially. This makes
40 it possible to use output from GNU Parallel as input for other
43 homepage = "https://www.gnu.org/software/parallel/";
44 license = licenses.gpl3Plus;
45 platforms = platforms.all;
46 maintainers = with maintainers; [ pSub vrthra tomberek ];