Merge pull request #66308 from marsam/fix-wasm-pack-darwin

wasm-pack: fix build on darwin
This commit is contained in:
Mario Rodas 2019-08-08 07:55:55 -05:00 committed by GitHub
commit 26663f75a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

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

View file

@ -24277,7 +24277,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 { };