at 23.05-pre 1.8 kB view raw
1{ fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils }: 2 3stdenv.mkDerivation rec { 4 pname = "parallel"; 5 version = "20220322"; 6 7 src = fetchurl { 8 url = "mirror://gnu/parallel/${pname}-${version}.tar.bz2"; 9 sha256 = "sha256-35PM9qn1Ka0hJrcEKu8EhmA+k4x3tAWTnEFwLTik5tg="; 10 }; 11 12 outputs = [ "out" "man" "doc" ]; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 buildInputs = [ perl procps ]; 16 17 postInstall = '' 18 wrapProgram $out/bin/parallel \ 19 --prefix PATH : "${lib.makeBinPath [ procps perl coreutils ]}" 20 ''; 21 22 doCheck = true; 23 24 meta = with lib; { 25 description = "Shell tool for executing jobs in parallel"; 26 longDescription = 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. 31 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. 37 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 41 programs. 42 ''; 43 homepage = "https://www.gnu.org/software/parallel/"; 44 license = licenses.gpl3Plus; 45 platforms = platforms.all; 46 maintainers = with maintainers; [ pSub vrthra tomberek ]; 47 }; 48}