@@ -0,0 +1,30 @@
1+{ lib, pkgconfig, rustPlatform, fetchFromGitHub, openssl }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-tarpaulin";
5+ version = "0.12.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "xd009642";
9+ repo = "tarpaulin";
10+ rev = "${version}";
11+ sha256 = "0y58800n61s8wmpcpgw5vpywznwwbp0d30fz2z0kjx4mpwmva4g4";
12+ };
13+
14+ nativeBuildInputs = [
15+ pkgconfig
16+ ];
17+ buildInputs = [ openssl ];
18+
19+ cargoSha256 = "12hkzq2xn4g5k94kjirjnnz4dddqg7akxnp3qyfkz092vvp25k9z";
20+ #checkFlags = [ "--test-threads" "1" ];
21+ doCheck = false;
22+
23+ meta = with lib; {
24+ description = "A code coverage tool for Rust projects";
25+ homepage = "https://github.com/xd009642/tarpaulin";
26+ license = with licenses; [ mit /* or */ asl20 ];
27+ maintainers = with maintainers; [ hugoreeves ];
28+ platforms = platforms.linux;
29+ };
30+}