mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #66308 from marsam/fix-wasm-pack-darwin
wasm-pack: fix build on darwin
This commit is contained in:
commit
26663f75a5
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
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue