wasm-pack: fix build on darwin

This commit is contained in:
Mario Rodas
2019-08-07 21:52:01 -05:00
parent 47b551c6a8
commit 58de4286d3
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -3,6 +3,8 @@
, rustPlatform
, pkgconfig
, openssl
, curl
, Security
}:
rustPlatform.buildRustPackage rec {
@@ -20,7 +22,9 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
# Tests fetch external resources and build artifacts.
# Disabled to work with sandboxing