diff options
author | Sandro | 2024-08-21 21:38:50 +0200 |
---|---|---|
committer | GitHub | 2024-08-21 21:38:50 +0200 |
commit | a3197bf982ac634ccc754ef8718998449bc8fcb7 (patch) | |
tree | 6ef2872b22307f458296d18fd070cfb07630e0e5 | |
parent | 1eae685fa5bf695f4d396171d60011ce88236d94 (diff) | |
parent | 47c7db93d320571afd62173c2dfac159650bfa0c (diff) |
Merge pull request #334966 from sedlund/feat/rust-parallel
rust-parallel: init 1.18.1
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ru/rust-parallel/package.nix | 42 |
2 files changed, 48 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 32520e17a60d..c1d5150d316a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -18601,6 +18601,12 @@ githubId = 17243347; name = "Sebastian Sellmeier"; }; + sedlund = { + email = "scott+nixpkgs@teraton.com"; + github = "sedlund"; + githubId = 8109138; + name = "Scott Edlund"; + }; sefidel = { name = "sefidel"; email = "contact@sefidel.net"; diff --git a/pkgs/by-name/ru/rust-parallel/package.nix b/pkgs/by-name/ru/rust-parallel/package.nix new file mode 100644 index 000000000000..d4a12aa15d31 --- /dev/null +++ b/pkgs/by-name/ru/rust-parallel/package.nix @@ -0,0 +1,42 @@ +{ + 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="; + }; + + cargoHash = "sha256-bhwA2Acl10Rz5uRxJT+RagDZloeztM2eWJmkHV6Ib6c="; + + 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; + }; +} |