nixpkgs/pkgs/development/tools/rust/cargo-watch/default.nix

30 lines
899 B
Nix
Raw Normal View History

2019-09-01 10:40:13 +01:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, CoreServices }:
2019-08-31 07:47:01 +01:00
rustPlatform.buildRustPackage rec {
pname = "cargo-watch";
version = "7.2.1";
src = fetchFromGitHub {
owner = "passcod";
repo = pname;
rev = "v${version}";
sha256 = "13zjsypj0ay9xb5j5fhl3yfn57kp2yngl138vmnyfk1h7gjdxpk3";
};
cargoSha256 = "1c3h9il3y0swvcdrrqgh5r7di522i1cc8zk1kfmx97chy8bhsqvg";
2019-09-01 10:40:13 +01:00
buildInputs = lib.optional stdenv.isDarwin CoreServices;
2019-08-31 07:47:01 +01:00
# `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;
2019-09-01 10:40:13 +01:00
platforms = platforms.all;
maintainers = with maintainers; [ xrelkd ivan ];
2019-08-31 07:47:01 +01:00
};
}