Merge pull request #67815 from xrelkd/add/cargo-watch
cargo-watch: init at 7.2.1
This commit is contained in:
commit
05fbc579cd
2 changed files with 28 additions and 0 deletions
27
pkgs/development/tools/rust/cargo-watch/default.nix
Normal file
27
pkgs/development/tools/rust/cargo-watch/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib, rustPlatform, fetchFromGitHub }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "cargo-watch";
|
||||||
|
version = "7.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "passcod";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "13zjsypj0ay9xb5j5fhl3yfn57kp2yngl138vmnyfk1h7gjdxpk3";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "1c3h9il3y0swvcdrrqgh5r7di522i1cc8zk1kfmx97chy8bhsqvg";
|
||||||
|
|
||||||
|
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
||||||
|
# (calling cargo-watch with command `cargo watch`)
|
||||||
|
checkPhase = "PATH=target/debug:$PATH cargo test";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Cargo subcommand for watching over Cargo project's source";
|
||||||
|
homepage = https://github.com/passcod/cargo-watch;
|
||||||
|
license = licenses.cc0;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ xrelkd ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8357,6 +8357,7 @@ in
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
|
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
|
||||||
|
cargo-watch = callPackage ../development/tools/rust/cargo-watch { };
|
||||||
cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { };
|
cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { };
|
||||||
cargo-generate = callPackage ../development/tools/rust/cargo-generate {
|
cargo-generate = callPackage ../development/tools/rust/cargo-generate {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
|
Loading…
Reference in a new issue