@@ -1,4 +1,4 @@
1−{ lib, rustPlatform, fetchFromGitHub }:
1+{ stdenv, lib, rustPlatform, fetchFromGitHub, CoreServices }:
22
33rustPlatform.buildRustPackage rec {
44 pname = "cargo-watch";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
1313
1414 cargoSha256 = "1c3h9il3y0swvcdrrqgh5r7di522i1cc8zk1kfmx97chy8bhsqvg";
1515
16+ buildInputs = lib.optional stdenv.isDarwin CoreServices;
17+
1618 # `test with_cargo` tries to call cargo-watch as a cargo subcommand
1719 # (calling cargo-watch with command `cargo watch`)
1820 checkPhase = "PATH=target/debug:$PATH cargo test";
@@ -21,7 +23,7 @@ rustPlatform.buildRustPackage rec {
2123 description = "A Cargo subcommand for watching over Cargo project's source";
2224 homepage = https://github.com/passcod/cargo-watch;
2325 license = licenses.cc0;
24− platforms = platforms.linux;
25− maintainers = with maintainers; [ xrelkd ];
26+ platforms = platforms.all;
27+ maintainers = with maintainers; [ xrelkd ivan ];
2628 };
2729}