02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grcov";
|
|
version = "0.8.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PUZ60dc2ciUInr98dF67Fi0xP/IHgITtYYG54wlLZYE=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-7bDWxiVmSi2GT6cSTzT0GTAs1qmFaj40JmVaD/sFwsA=";
|
|
|
|
# tests do not find grcov path correctly
|
|
checkFlags = let
|
|
skipList = [
|
|
"test_coveralls_service_job_id_is_not_sufficient"
|
|
"test_coveralls_service_name_is_not_sufficient"
|
|
"test_coveralls_works_with_just_service_name_and_job_id_args"
|
|
"test_coveralls_works_with_just_token_arg"
|
|
"test_integration"
|
|
"test_integration_guess_single_file"
|
|
"test_integration_zip_dir"
|
|
"test_integration_zip_zip"
|
|
];
|
|
skipFlag = test: "--skip " + test;
|
|
in builtins.concatStringsSep " " (builtins.map skipFlag skipList);
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"Rust tool to collect and aggregate code coverage data for multiple source files";
|
|
homepage = "https://github.com/mozilla/grcov";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ DieracDelta ];
|
|
};
|
|
}
|