bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
40 lines
943 B
Nix
40 lines
943 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, curl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-tarpaulin";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xd009642";
|
|
repo = "tarpaulin";
|
|
rev = version;
|
|
hash = "sha256-RtkW2FDey049URmr0WGNYcz5sTZXIQ7dZL/OlIaKX20=";
|
|
};
|
|
|
|
cargoHash = "sha256-HBpEMjc2FQvFqvvcCtxHJBj2waFau77t+m+1ZfomguA=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.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 ];
|
|
};
|
|
}
|