hyperplonk/nix/grcov/default.nix
nix/grcov/default.nixRaw
1{ lib, rustToolchain, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "grcov";
5 version = "v0.8.2";
6
7 # See https://nixos.org/manual/nixpkgs/stable/#using-community-rust-overlays
8 nativeBuildInputs = [
9 rustToolchain
10 ];
11
12 doCheck = false;
13
14 src = fetchFromGitHub {
15 owner = "mozilla";
16 repo = pname;
17 rev = version;
18 sha256 = "t1Gj5u4MmXPbQ5jmO9Sstn7aXJ6Ge+AnsmmG2GiAGKE=";
19 };
20
21 cargoSha256 = "DRAUeDzNUMg0AGrqU1TdrqBZJw4A2o3YJB0MdwwzefQ=";
22
23 meta = with lib; {
24 description = "grcov collects and aggregates code coverage information for multiple source files.";
25 homepage = "https://github.com/mozilla/grcov";
26 license = licenses.mpl20;
27 };
28}