2022-11-04 12:27:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2023-04-29 16:46:19 +00:00
|
|
|
, fetchCrate
|
2022-11-04 12:27:35 +00:00
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-llvm-cov";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.5.25";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-4ctwvDLluJsLWJPInoFGqxmEzlEuBtEJb3/x+q/5pDA=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
cargoSha256 = "sha256-QghbQYfoCd+ppNz/g5NlCnrFYpsjesQlcgMCEKUgN2k=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
# skip tests which require llvm-tools-preview
|
|
|
|
checkFlags = [
|
|
|
|
"--skip bin_crate"
|
|
|
|
"--skip cargo_config"
|
|
|
|
"--skip clean_ws"
|
|
|
|
"--skip instantiations"
|
|
|
|
"--skip merge"
|
|
|
|
"--skip merge_failure_mode_all"
|
|
|
|
"--skip no_test"
|
|
|
|
"--skip open_report"
|
|
|
|
"--skip real1"
|
|
|
|
"--skip show_env"
|
|
|
|
"--skip virtual1"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = rec {
|
|
|
|
homepage = "https://github.com/taiki-e/${pname}";
|
|
|
|
changelog = homepage + "/blob/v${version}/CHANGELOG.md";
|
|
|
|
description = "Cargo subcommand to easily use LLVM source-based code coverage";
|
|
|
|
longDescription = ''
|
|
|
|
In order for this to work, you either need to run `rustup component add llvm-
|
|
|
|
tools-preview` or install the `llvm-tools-preview` component using your Nix
|
2023-03-15 16:39:30 +00:00
|
|
|
library (e.g. fenix or rust-overlay)
|
2022-11-04 12:27:35 +00:00
|
|
|
'';
|
|
|
|
license = with lib.licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ wucke13 ];
|
|
|
|
};
|
|
|
|
}
|