cargo-llvm-cov: use fetchCrate

This commit is contained in:
Nick Cao
2023-04-22 18:26:27 +08:00
parent b2d9d9928f
commit fd42fb3bdb
@@ -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=";