Merge pull request #160834 from DieracDelta/grcov

grcov: init at 0.8.7
This commit is contained in:
Anderson Torres 2022-02-24 22:42:13 -03:00 committed by GitHub
commit b638edd948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View File

@ -2993,6 +2993,12 @@
githubId = 8404455;
name = "Diego Lelis";
};
DieracDelta = {
email = "justin@restivo.me";
github = "DieracDelta";
githubId = 13730968;
name = "Justin Restivo";
};
diffumist = {
email = "git@diffumist.me";
github = "diffumist";

View File

@ -0,0 +1,38 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "grcov";
version = "0.8.7";
src = fetchFromGitHub {
owner = "mozilla";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4McF9tLIjDCftyGI29pm/LnTUBVWG+pY5z+mGFKySQM=";
};
cargoSha256 = "sha256-/filuQ4AWsKVIsXbDX7S1yhCArLNTZpOMEn3ID6WuMo=";
# 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 ];
};
}

View File

@ -15017,6 +15017,8 @@ with pkgs;
gradle_7 = callPackage gradle-packages.gradle_7 { };
gradle = gradle_7;
grcov = callPackage ../development/tools/misc/grcov { };
gperf = callPackage ../development/tools/misc/gperf { };
# 3.1 changed some parameters from int to size_t, leading to mismatches.
gperf_3_0 = callPackage ../development/tools/misc/gperf/3.0.x.nix { };