git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #160834 from DieracDelta/grcov

grcov: init at 0.8.7

commitb638edd948b1553cae280939464a681ae64421e1 authorAnderson Torres <torres.anderson.85@protonmail.com> dateThu 24 Feb 2022, 22:42 (5 years ago) parentcabaf93e79a646
3 files changed+46
maintainers/maintainer-list.nix+6 pkgs/development/tools/misc/grcov/default.nix+38 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -2993,6 +2993,12 @@
29932993 githubId = 8404455;
29942994 name = "Diego Lelis";
29952995 };
2996+ DieracDelta = {
2997+ email = "justin@restivo.me";
2998+ github = "DieracDelta";
2999+ githubId = 13730968;
3000+ name = "Justin Restivo";
3001+ };
29963002 diffumist = {
29973003 email = "git@diffumist.me";
29983004 github = "diffumist";
pkgs/development/tools/misc/grcov/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ lib, rustPlatform, fetchFromGitHub }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "grcov";
5+ version = "0.8.7";
6+
7+ src = fetchFromGitHub {
8+ owner = "mozilla";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "sha256-4McF9tLIjDCftyGI29pm/LnTUBVWG+pY5z+mGFKySQM=";
12+ };
13+
14+ cargoSha256 = "sha256-/filuQ4AWsKVIsXbDX7S1yhCArLNTZpOMEn3ID6WuMo=";
15+
16+ # tests do not find grcov path correctly
17+ checkFlags = let
18+ skipList = [
19+ "test_coveralls_service_job_id_is_not_sufficient"
20+ "test_coveralls_service_name_is_not_sufficient"
21+ "test_coveralls_works_with_just_service_name_and_job_id_args"
22+ "test_coveralls_works_with_just_token_arg"
23+ "test_integration"
24+ "test_integration_guess_single_file"
25+ "test_integration_zip_dir"
26+ "test_integration_zip_zip"
27+ ];
28+ skipFlag = test: "--skip " + test;
29+ in builtins.concatStringsSep " " (builtins.map skipFlag skipList);
30+
31+ meta = with lib; {
32+ description =
33+ "Rust tool to collect and aggregate code coverage data for multiple source files";
34+ homepage = "https://github.com/mozilla/grcov";
35+ license = licenses.mpl20;
36+ maintainers = with maintainers; [ DieracDelta ];
37+ };
38+}
pkgs/top-level/all-packages.nix+2
@@ -15017,6 +15017,8 @@ with pkgs;
1501715017 gradle_7 = callPackage gradle-packages.gradle_7 { };
1501815018 gradle = gradle_7;
1501915019
15020+ grcov = callPackage ../development/tools/misc/grcov { };
15021+
1502015022 gperf = callPackage ../development/tools/misc/gperf { };
1502115023 # 3.1 changed some parameters from int to size_t, leading to mismatches.
1502215024 gperf_3_0 = callPackage ../development/tools/misc/gperf/3.0.x.nix { };