Merge pull request #132716 from AtkinsChang/cargo-tarpualin

cargo-tarpaulin: support darwin
This commit is contained in:
Sandro 2021-08-05 09:22:20 +02:00 committed by GitHub
commit ad123963b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ lib, pkg-config, rustPlatform, fetchFromGitHub, openssl }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, curl, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tarpaulin";
@ -14,7 +14,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
pkg-config
];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ curl Security ];
cargoSha256 = "sha256-1lFGczzcN4QPsIpEVQiSmNS7L+9rlSfxi+gopt2E7Ec=";
#checkFlags = [ "--test-threads" "1" ];
@ -25,6 +26,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/xd009642/tarpaulin";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ hugoreeves ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -12155,7 +12155,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-rr = callPackage ../development/tools/rust/cargo-rr { };
cargo-tarpaulin = callPackage ../development/tools/analysis/cargo-tarpaulin { };
cargo-tarpaulin = callPackage ../development/tools/analysis/cargo-tarpaulin {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-update = callPackage ../tools/package-management/cargo-update {
inherit (darwin.apple_sdk.frameworks) Security;
};