c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
31 lines
890 B
Nix
31 lines
890 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, curl, openssl, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-tarpaulin";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xd009642";
|
|
repo = "tarpaulin";
|
|
rev = version;
|
|
sha256 = "sha256-NABmCLEJBt+lpe28pgztMmPFja2httg3THlvk9EMbUI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ curl Security ];
|
|
|
|
cargoSha256 = "sha256-PyY7H7he/LhfhIhZnT13rSc7zNnOWnLMfgwTUfX39bQ=";
|
|
#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 ];
|
|
platforms = lib.platforms.x86_64;
|
|
};
|
|
}
|