4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
30 lines
850 B
Nix
30 lines
850 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, curl, openssl, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-tarpaulin";
|
|
version = "0.25.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xd009642";
|
|
repo = "tarpaulin";
|
|
rev = version;
|
|
sha256 = "sha256-9duL16AuwG3lBMq1hUAXbNrvoBF6SASCiakmT42LQ/E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ curl Security ];
|
|
|
|
cargoHash = "sha256-MXnE3Fq/jzWHvmO2i8cWixRKRuwVbUU/OmBj1SUkEiY=";
|
|
#checkFlags = [ "--test-threads" "1" ];
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A code coverage tool for Rust projects";
|
|
homepage = "https://github.com/xd009642/tarpaulin";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ hugoreeves ];
|
|
};
|
|
}
|