3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/cargo-watch/default.nix

30 lines
901 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";
2020-06-06 05:03:24 +01:00
version = "7.4.0";
2019-08-31 07:47:01 +01:00
src = fetchFromGitHub {
owner = "passcod";
repo = pname;
rev = "v${version}";
2020-06-06 05:03:24 +01:00
sha256 = "0yg6im7hzwzl84gxcg7wbix5h0ciq4l4ql6ili7k0k7j8bhrxn82";
2019-08-31 07:47:01 +01:00
};
2020-06-06 05:03:24 +01:00
cargoSha256 = "1y299mvg9k568f16d2r92y0bgwfrng6idw21wcsd5mnsd28fsww1";
2019-08-31 07:47:01 +01:00
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";
2019-08-31 07:47:01 +01:00
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
};
}