Files
nixpkgs/pkgs/by-name/ru/rust-parallel/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
bash,
fetchFromGitHub,
lib,
rustPlatform,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "rust-parallel";
version = "1.18.1";
src = fetchFromGitHub {
owner = "aaronriekenberg";
repo = "rust-parallel";
rev = "v${version}";
hash = "sha256-4f/JE8KWYDdLwx+bCSSbz0Cpfy/g3WIaRzqCvUix4t0=";
};
cargoHash = "sha256-wJtXYx2mncOnnUep4CMFt+1mK1vMyhYFCQM/2B9m6zY=";
postPatch = ''
substituteInPlace tests/dummy_shell.sh \
--replace "/bin/bash" "${bash}/bin/bash"
'';
checkFlags = [
"--skip=runs_echo_commands_dry_run"
"--skip=runs_regex_command_with_dollar_signs"
"--skip=runs_regex_from_command_line_args_nomatch_1"
"--skip=runs_regex_from_input_file_badline_j1"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Rust shell tool to run commands in parallel with a similar interface to GNU parallel";
homepage = "https://github.com/aaronriekenberg/rust-parallel";
license = lib.licenses.mit;
mainProgram = "rust-parallel";
maintainers = with lib.maintainers; [ sedlund ];
};
}