diff options
author | Nick Cao <nickcao@nichi.co> | 2023-04-22 18:26:27 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-04-22 18:26:27 +0800 |
commit | fd42fb3bdb5dc4ed295fee9c3b7882f79df04871 (patch) | |
tree | f59811c874433cff5f1c91f2da74dcb7d9073054 /pkgs/development/tools/rust/cargo-llvm-cov | |
parent | b2d9d9928f75bfa2b3135b699e0433e34529397d (diff) |
cargo-llvm-cov: use fetchCrate
Diffstat (limited to 'pkgs/development/tools/rust/cargo-llvm-cov')
-rw-r--r-- | pkgs/development/tools/rust/cargo-llvm-cov/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/rust/cargo-llvm-cov/default.nix b/pkgs/development/tools/rust/cargo-llvm-cov/default.nix index 97806055096fa..64d6e70a0f50f 100644 --- a/pkgs/development/tools/rust/cargo-llvm-cov/default.nix +++ b/pkgs/development/tools/rust/cargo-llvm-cov/default.nix @@ -1,6 +1,6 @@ { stdenv , lib -, fetchzip +, fetchCrate , rustPlatform }: @@ -8,8 +8,8 @@ rustPlatform.buildRustPackage rec { pname = "cargo-llvm-cov"; version = "0.5.17"; - src = fetchzip { - url = "https://crates.io/api/v1/crates/${pname}/${version}/download#${pname}-${version}.tar.gz"; + src = fetchCrate { + inherit pname version; sha256 = "sha256-kU8Wq0BRE/Tajmi/PV6dja9HJy0lbZwzGuMIXDnFUw0="; }; cargoSha256 = "sha256-Zv6CkUhMTMqGM8PH+ciDV20vq88tU5THSw0NByO1v70="; |