mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-01 01:20:17 +02:00
Merge pull request #51327 from k0ral/loop
loop: init at unstable-2018-10-02
This commit is contained in:
commit
d5b45b4ff8
27
pkgs/tools/misc/loop/default.nix
Normal file
27
pkgs/tools/misc/loop/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
name = "loop-unstable-2018-10-02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Miserlou";
|
||||
repo = "Loop";
|
||||
rev = "d6ef3c5a0ecd4f533908abee5e481419a1a6eeae";
|
||||
sha256 = "1fhihm32v77rj6r3scwmnvzsivky50g7a1644qrn8pafpjs4zwx5";
|
||||
};
|
||||
|
||||
cargoSha256 = "1ccf8dkswwdbwf9diy0l4vc4i2g05ynhi3w1jg3b2ldrvj0j9m9s";
|
||||
|
||||
cargoPatches = [
|
||||
# Upstream includes mismatched Cargo.lock file.
|
||||
# See https://github.com/Miserlou/Loop/pull/40
|
||||
./fix_cargo_lock.patch
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "UNIX's missing `loop` command";
|
||||
homepage = https://github.com/Miserlou/Loop;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
12
pkgs/tools/misc/loop/fix_cargo_lock.patch
Normal file
12
pkgs/tools/misc/loop/fix_cargo_lock.patch
Normal file
|
@ -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)",
|
|
@ -22187,6 +22187,8 @@ in
|
|||
|
||||
openlilylib-fonts = callPackage ../misc/lilypond/fonts.nix { };
|
||||
|
||||
loop = callPackage ../tools/misc/loop { };
|
||||
|
||||
mailcore2 = callPackage ../development/libraries/mailcore2 {
|
||||
icu = icu58;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue