forked from mirrors/nixpkgs
Merge pull request #67873 from ivan/cargo-watch-darwin
cargo-watch: enable for darwin
This commit is contained in:
commit
76fc3de3ef
|
@ -1,4 +1,4 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub }:
|
||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, CoreServices }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-watch";
|
||||
|
@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "1c3h9il3y0swvcdrrqgh5r7di522i1cc8zk1kfmx97chy8bhsqvg";
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin CoreServices;
|
||||
|
||||
# `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";
|
||||
|
@ -21,7 +23,7 @@ rustPlatform.buildRustPackage rec {
|
|||
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 ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ xrelkd ivan ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8361,7 +8361,9 @@ in
|
|||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
|
||||
cargo-watch = callPackage ../development/tools/rust/cargo-watch { };
|
||||
cargo-watch = callPackage ../development/tools/rust/cargo-watch {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { };
|
||||
cargo-generate = callPackage ../development/tools/rust/cargo-generate {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
|
Loading…
Reference in a new issue