mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grcov";
|
|
version = "0.8.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1t+hzB9sSApLScCkjBnLk9i2dsoEwZmWCFukEOvHhZI=";
|
|
};
|
|
|
|
cargoHash = "sha256-4KzFbfUqnGmle2fwSaHMPIJHQFDq8H2Qzm4FdYdqpuM=";
|
|
|
|
# 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";
|
|
mainProgram = "grcov";
|
|
homepage = "https://github.com/mozilla/grcov";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ DieracDelta ];
|
|
};
|
|
}
|