diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2019-08-31 14:47:01 +0800 |
---|---|---|
committer | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2019-08-31 14:47:01 +0800 |
commit | 18508dcb6a6c5e3341e6591e5812ada177b9c1d6 (patch) | |
tree | 6f40704d120e9d781bb11cacc650989e63e63c9a /pkgs/development/tools/rust | |
parent | c56a764e2e5a05744c851c2eae1dbc68332514c5 (diff) |
cargo-watch: init at 7.2.1
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/cargo-watch/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-watch/default.nix b/pkgs/development/tools/rust/cargo-watch/default.nix new file mode 100644 index 0000000000000..3ffef315c3178 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-watch/default.nix @@ -0,0 +1,27 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-watch"; + version = "7.2.1"; + + src = fetchFromGitHub { + owner = "passcod"; + repo = pname; + rev = "v${version}"; + sha256 = "13zjsypj0ay9xb5j5fhl3yfn57kp2yngl138vmnyfk1h7gjdxpk3"; + }; + + cargoSha256 = "1c3h9il3y0swvcdrrqgh5r7di522i1cc8zk1kfmx97chy8bhsqvg"; + + # `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; + platforms = platforms.linux; + maintainers = with maintainers; [ xrelkd ]; + }; +} |