diff options
author | Ivan Kozik <ivan@ludios.org> | 2019-09-01 09:40:13 +0000 |
---|---|---|
committer | Ivan Kozik <ivan@ludios.org> | 2019-09-01 09:45:02 +0000 |
commit | 78d1b2d29e6c64e78d423ddb718fb4451d462309 (patch) | |
tree | 776720845a377fa614154fb62fc08d34beedc587 /pkgs/development/tools/rust | |
parent | e08cb1ff650430b80996637ad63b9209bef43a7f (diff) |
cargo-watch: enable for darwin
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/cargo-watch/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/tools/rust/cargo-watch/default.nix b/pkgs/development/tools/rust/cargo-watch/default.nix index 3ffef315c3178..5ea935babd195 100644 --- a/pkgs/development/tools/rust/cargo-watch/default.nix +++ b/pkgs/development/tools/rust/cargo-watch/default.nix @@ -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 ]; }; } |