mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
commit
b638edd948
|
@ -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";
|
||||
|
|
38
pkgs/development/tools/misc/grcov/default.nix
Normal file
38
pkgs/development/tools/misc/grcov/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue