Merge pull request #66308 from marsam/fix-wasm-pack-darwin
wasm-pack: fix build on darwin
commit26663f75a55c44d7b0d699fc2b67b8bb5ba1483c
authorMario Rodas <marsam@users.noreply.github.com>
dateThu 8 Aug 2019, 07:55 (7 years ago)
parent8edcdd758de428
pkgs/development/tools/wasm-pack/default.nix+5−1
@@ -3,6 +3,8 @@
33, rustPlatform
44, pkgconfig
55, openssl
6+, curl
7+, Security
68}:
79
810rustPlatform.buildRustPackage rec {
@@ -20,7 +22,9 @@ rustPlatform.buildRustPackage rec {
2022
2123 nativeBuildInputs = [ pkgconfig ];
2224
23− buildInputs = [ openssl ];
25+ buildInputs = [ openssl ]
26+ ++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
27+
2428
2529 # Tests fetch external resources and build artifacts.
2630 # Disabled to work with sandboxing
pkgs/top-level/all-packages.nix+3−1
@@ -24277,7 +24277,9 @@ in
2427724277
2427824278 vttest = callPackage ../tools/misc/vttest { };
2427924279
24280− wasm-pack = callPackage ../development/tools/wasm-pack { };
24280+ wasm-pack = callPackage ../development/tools/wasm-pack {
24281+ inherit (darwin.apple_sdk.frameworks) Security;
24282+ };
2428124283
2428224284 wavegain = callPackage ../applications/audio/wavegain { };
2428324285