cargo-update: fix darwin build

This commit is contained in:
zowoq
2020-08-17 00:16:37 +10:00
parent 3ab2bf69ce
commit b12099956c
2 changed files with 7 additions and 3 deletions
@@ -7,7 +7,9 @@
, libssh2
, openssl
, pkg-config
, zlib }:
, Security
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-update";
@@ -25,7 +27,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libgit2 libssh2 openssl zlib ]
++ stdenv.lib.optional stdenv.isDarwin curl;
++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
meta = with stdenv.lib; {
description = "A cargo subcommand for checking and applying updates to installed executables";