Merge pull request #33923 from mnacamura/parallel-rust
parallel-rust: init at 0.11.3
This commit is contained in:
commit
516481a2c8
3 changed files with 39 additions and 0 deletions
25
pkgs/tools/misc/parallel-rust/default.nix
Normal file
25
pkgs/tools/misc/parallel-rust/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "parallel-rust-${version}";
|
||||
version = "0.11.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mmstick";
|
||||
repo = "parallel";
|
||||
rev = version;
|
||||
sha256 = "1bb1m3ckkrxlnw9w24ig70bd1zwyrbaw914q3xz5yv43c0l6pn9c";
|
||||
};
|
||||
|
||||
cargoSha256 = "0p3wpjz3jrqjasi39zq6q54dhpymc5jp0mfsnzbq6dvz18s8m588";
|
||||
|
||||
patches = [ ./fix_cargo_lock_version.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A command-line CPU load balancer written in Rust";
|
||||
homepage = https://github.com/mmstick/parallel;
|
||||
license = licenses.mit;
|
||||
maintainers = [];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
12
pkgs/tools/misc/parallel-rust/fix_cargo_lock_version.patch
Normal file
12
pkgs/tools/misc/parallel-rust/fix_cargo_lock_version.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/Cargo.lock b/Cargo.lock
|
||||
index c01308d..dba3927 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -1,6 +1,6 @@
|
||||
[root]
|
||||
name = "parallel"
|
||||
-version = "0.11.2"
|
||||
+version = "0.11.3"
|
||||
dependencies = [
|
||||
"arrayvec 0.3.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"itoa 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
@ -1253,6 +1253,8 @@ with pkgs;
|
|||
|
||||
ps_mem = callPackage ../tools/system/ps_mem { };
|
||||
|
||||
parallel-rust = callPackage ../tools/misc/parallel-rust { };
|
||||
|
||||
socklog = callPackage ../tools/system/socklog { };
|
||||
|
||||
staccato = callPackage ../tools/text/staccato { };
|
||||
|
|
Loading…
Reference in a new issue