depot/third_party/nixpkgs/pkgs/development/tools/analysis/cargo-tarpaulin/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
956 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, curl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-tarpaulin";
version = "0.31.2";
src = fetchFromGitHub {
owner = "xd009642";
repo = "tarpaulin";
rev = version;
hash = "sha256-rYu8SsG2vEXMpwsLV/6TjC0iDJRsm6UEl4qXZwXRRpE=";
};
cargoHash = "sha256-5zhsWliwPPXq+KUKW0N1qyueg8BD+qmUqeKUrVl/vZ8=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ curl Security ];
doCheck = false;
meta = with lib; {
description = "Code coverage tool for Rust projects";
mainProgram = "cargo-tarpaulin";
homepage = "https://github.com/xd009642/tarpaulin";
changelog = "https://github.com/xd009642/tarpaulin/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda hugoreeves ];
};
}