cargo-msrv: fix darwin build

This commit is contained in:
Stéphan Kochen
2021-05-11 10:33:52 +02:00
parent d660a7d361
commit 67e530be79
2 changed files with 9 additions and 2 deletions
@@ -4,6 +4,9 @@
, nix-update-script
, pkg-config
, openssl
, stdenv
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
@@ -28,7 +31,9 @@ rustPlatform.buildRustPackage rec {
# Integration tests fail
doCheck = false;
buildInputs = [ openssl ];
buildInputs = if stdenv.isDarwin
then [ libiconv Security ]
else [ openssl ];
nativeBuildInputs = [ pkg-config ];