cargo-watch: 7.4.1 -> 7.5.0
https://github.com/passcod/cargo-watch/releases/tag/v7.5.0 Also fixes the `aarch64`-build: https://hydra.nixos.org/build/123187262
This commit is contained in:
parent
c4264d0f3a
commit
67a1c36929
1 changed files with 7 additions and 5 deletions
|
@ -1,23 +1,25 @@
|
||||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, CoreServices }:
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, CoreServices, rust }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-watch";
|
pname = "cargo-watch";
|
||||||
version = "7.4.1";
|
version = "7.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "passcod";
|
owner = "passcod";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1nq7sfdxvqldj94laz562y4cvgagm67b6a5b7bzxdip0sf1l11f8";
|
sha256 = "181v922nx8152ymszig1kw6y0mnix6si1zfnv6vqgr5r53pwkbc1";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1rjx3k8li8ck5cdygm4pd2i5wkslr6d9z9vl2vp0x6hqv1gcv5zh";
|
cargoSha256 = "1abhzi1396x8lnxvakj34nysl3ybvsaf21j678wzaqwj16sd3w3d";
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin CoreServices;
|
buildInputs = lib.optional stdenv.isDarwin CoreServices;
|
||||||
|
|
||||||
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
||||||
# (calling cargo-watch with command `cargo watch`)
|
# (calling cargo-watch with command `cargo watch`)
|
||||||
checkPhase = "PATH=target/debug:$PATH cargo test";
|
preCheck = ''
|
||||||
|
export PATH="$(pwd)/target/${rust.toRustTarget stdenv.hostPlatform}/release:$PATH"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Cargo subcommand for watching over Cargo project's source";
|
description = "A Cargo subcommand for watching over Cargo project's source";
|
||||||
|
|
Loading…
Reference in a new issue