depot/third_party/nixpkgs/pkgs/by-name/ru/rust-parallel/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

43 lines
1.1 KiB
Nix

{
bash,
fetchFromGitHub,
lib,
rustPlatform,
}:
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=";
};
useFetchCargoVendor = true;
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"
];
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 ];
platforms = lib.platforms.linux;
};
}