Files
nixpkgs/pkgs/by-name/ru/rust-parallel/package.nix
2026-08-15 19:50:09 +00:00

47 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
bashNonInteractive,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rust-parallel";
version = "1.24.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "aaronriekenberg";
repo = "rust-parallel";
rev = "v${finalAttrs.version}";
hash = "sha256-W0NW4+4mcDn8Z6fHjcaxmSM8kFLzGfyCLXhXYd5LRdE=";
};
cargoHash = "sha256-DRGIzRectmZibUobnxP3yNq1fhldjXGHBfFkGzi5mwU=";
checkInputs = [ bashNonInteractive ];
# Some test require the output of tracing which for some reason hides info if RUST_LOG is set to "" which it is by default
logLevel = "info";
preCheck = ''
patchShebangs ./tests/dummy_shell.sh
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
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 ];
};
})