9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
39 lines
908 B
Nix
39 lines
908 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, curl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-tarpaulin";
|
|
version = "0.26.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xd009642";
|
|
repo = "tarpaulin";
|
|
rev = version;
|
|
hash = "sha256-FQdYos8hnQMkl/3vM9kSj0LM8fIZcsWMLKimpNXnrFo=";
|
|
};
|
|
|
|
cargoHash = "sha256-fCoZ1pSKPXvNSWiAfhPygidkM0Ek7DYtHHv/sdPptvM=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ curl Security ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A code coverage tool for Rust projects";
|
|
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 ];
|
|
};
|
|
}
|