diff options
author | koral <chahine.moreau@gmail.com> | 2018-12-01 19:51:49 +0100 |
---|---|---|
committer | koral <chahine.moreau@gmail.com> | 2018-12-02 00:03:13 +0100 |
commit | 35f6d1cda44842e07373824041feb2f27b3fa373 (patch) | |
tree | 0ea21107cdacee9ca1728a2e5f3206efedb90b40 /pkgs/tools/misc/loop | |
parent | 80738ed9dc0ce48d7796baed5364eef8072c794d (diff) |
loop: init at unstable-2018-10-02
Diffstat (limited to 'pkgs/tools/misc/loop')
-rw-r--r-- | pkgs/tools/misc/loop/default.nix | 24 | ||||
-rw-r--r-- | pkgs/tools/misc/loop/fix_cargo_lock.patch | 12 | ||||
-rw-r--r-- | pkgs/tools/misc/loop/fix_cargo_toml.patch | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/tools/misc/loop/default.nix b/pkgs/tools/misc/loop/default.nix new file mode 100644 index 0000000000000..f86f3041aba26 --- /dev/null +++ b/pkgs/tools/misc/loop/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + name = "loop-unstable-2018-10-02"; + version = "d6ef3c5a0ecd4f533908abee5e481419a1a6eeae"; + + src = fetchFromGitHub { + owner = "Miserlou"; + repo = "Loop"; + rev = version; + sha256 = "1fhihm32v77rj6r3scwmnvzsivky50g7a1644qrn8pafpjs4zwx5"; + }; + + cargoSha256 = "1ccf8dkswwdbwf9diy0l4vc4i2g05ynhi3w1jg3b2ldrvj0j9m9s"; + + cargoPatches = [ ./fix_cargo_toml.patch ./fix_cargo_lock.patch ]; # Cargo.lock and Cargo.toml are not aligned + + meta = with stdenv.lib; { + description = "UNIX's missing `loop` command"; + homepage = https://github.com/Miserlou/Loop; + maintainers = with maintainers; [ koral ]; + license = licenses.mit; + }; +} diff --git a/pkgs/tools/misc/loop/fix_cargo_lock.patch b/pkgs/tools/misc/loop/fix_cargo_lock.patch new file mode 100644 index 0000000000000..f991a604f336b --- /dev/null +++ b/pkgs/tools/misc/loop/fix_cargo_lock.patch @@ -0,0 +1,12 @@ +diff --git a/Cargo.lock b/Cargo.lock +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -107,7 +107,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" + + [[package]] + name = "loop-rs" +-version = "0.3.5" ++version = "0.4.0" + dependencies = [ + "atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/pkgs/tools/misc/loop/fix_cargo_toml.patch b/pkgs/tools/misc/loop/fix_cargo_toml.patch new file mode 100644 index 0000000000000..b95afac470f58 --- /dev/null +++ b/pkgs/tools/misc/loop/fix_cargo_toml.patch @@ -0,0 +1,18 @@ +diff --git a/Cargo.toml b/Cargo.toml +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -15,9 +15,9 @@ license = "MIT" +-structopt = "0.2" ++structopt = "0.2.10" + humantime = "1.1.1" +-atty = "0.2" ++atty = "0.2.11" +-regex = "1.0.0" ++regex = "1.0.5" +-subprocess = "0.1.12" ++subprocess = "0.1.14" +-tempfile = "3.0.3" ++tempfile = "3.0.4" + + [[bin]] + name = "loop" |