2022-03-05 16:20:37 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "grcov";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.8.8";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-OITtZdI9d5zQVI02s5gJF9lWCjZZgE7YZRfFROU040o=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "sha256-AZVkS/huEsA1wdVB/xUGCCjY5AWJxaU1DD/OlEURw/c=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|