cargo-update: fix darwin build

This commit is contained in:
zowoq 2020-08-16 21:23:36 +10:00
parent 3ab2bf69ce
commit b12099956c
2 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,9 @@
, libssh2 , libssh2
, openssl , openssl
, pkg-config , pkg-config
, zlib }: , Security
, zlib
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-update"; pname = "cargo-update";
@ -25,7 +27,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libgit2 libssh2 openssl zlib ] buildInputs = [ libgit2 libssh2 openssl zlib ]
++ stdenv.lib.optional stdenv.isDarwin curl; ++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A cargo subcommand for checking and applying updates to installed executables"; description = "A cargo subcommand for checking and applying updates to installed executables";

View File

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