biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / grcov / default.nix
blobd097f389deb9402a604556bb54e211895397e68b
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "grcov";
5   version = "0.8.19";
7   src = fetchFromGitHub {
8     owner = "mozilla";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-1t+hzB9sSApLScCkjBnLk9i2dsoEwZmWCFukEOvHhZI=";
12   };
14   cargoHash = "sha256-4KzFbfUqnGmle2fwSaHMPIJHQFDq8H2Qzm4FdYdqpuM=";
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);
31   meta = with lib; {
32     description =
33       "Rust tool to collect and aggregate code coverage data for multiple source files";
34     mainProgram = "grcov";
35     homepage = "https://github.com/mozilla/grcov";
36     license = licenses.mpl20;
37     maintainers = with maintainers; [ DieracDelta ];
38   };