13 stdenv.mkDerivation rec {
18 url = "mirror://gnu/parallel/parallel-${version}.tar.bz2";
19 hash = "sha256-Gp51L0LBfKELwH0KY6LKbtzuUyKC5V0rNL2d0UyXilg=";
38 postPatch = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
39 substituteInPlace Makefile.in \
40 --replace '$(DESTDIR)$(bindir)/parallel --shell-completion' '${lib.getExe buildPackages.parallel} --shell-completion'
44 patchShebangs ./src/parallel
48 wrapProgram $out/bin/parallel \
62 description = "Shell tool for executing jobs in parallel";
64 GNU Parallel is a shell tool for executing jobs in parallel. A job
65 is typically a single command or a small script that has to be run
66 for each of the lines in the input. The typical input is a list of
67 files, a list of hosts, a list of users, or a list of tables.
69 If you use xargs today you will find GNU Parallel very easy to use.
70 If you write loops in shell, you will find GNU Parallel may be able
71 to replace most of the loops and make them run faster by running
72 jobs in parallel. If you use ppss or pexec you will find GNU
73 Parallel will often make the command easier to read.
75 GNU Parallel makes sure output from the commands is the same output
76 as you would get had you run the commands sequentially. This makes
77 it possible to use output from GNU Parallel as input for other
80 homepage = "https://www.gnu.org/software/parallel/";
81 license = licenses.gpl3Plus;
82 platforms = platforms.all;
83 maintainers = with maintainers; [
87 mainProgram = "parallel";