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
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8
2 changed files with 8 additions and 2 deletions

@ -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

@ -24280,7 +24280,9 @@ in
vttest = callPackage ../tools/misc/vttest { };
wasm-pack = callPackage ../development/tools/wasm-pack { };
wasm-pack = callPackage ../development/tools/wasm-pack {
inherit (darwin.apple_sdk.frameworks) Security;
};
wavegain = callPackage ../applications/audio/wavegain { };