Files
nixpkgs/pkgs/by-name/gr/grcov/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "grcov";
version = "0.9.1";
src = fetchFromGitHub {
owner = "mozilla";
repo = "grcov";
tag = "v${finalAttrs.version}";
hash = "sha256-e3RQn6wKvVm40UK8ZlgIi2gRS9eEFBnEXdmXtCgv0Go=";
};
cargoHash = "sha256-v4laGVbWmK8WFJXX5ChtViyKyMtmwpehSgNG6F31Mn0=";
# 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 " " (map skipFlag skipList);
meta = {
description = "Rust tool to collect and aggregate code coverage data for multiple source files";
mainProgram = "grcov";
homepage = "https://github.com/mozilla/grcov";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ DieracDelta ];
};
})