nixpkgs-suyu/pkgs/development/tools/analysis/cargo-tarpaulin/default.nix
Atkins Chang 02b32550db
cargo-tarpaulin: support darwin
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
2021-08-05 06:42:50 +08:00

30 lines
852 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, curl, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tarpaulin";
version = "0.18.0";
src = fetchFromGitHub {
owner = "xd009642";
repo = "tarpaulin";
rev = version;
sha256 = "sha256-j5VLxtu8Xg1fwDYWYJXGFUkfpgauG/5NauSniSZ7G2w=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ curl Security ];
cargoSha256 = "sha256-1lFGczzcN4QPsIpEVQiSmNS7L+9rlSfxi+gopt2E7Ec=";
#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 ];
};
}