deno: fix build on darwin
This commit is contained in:
parent
d45cf406a4
commit
58bcc97dc2
|
@ -1,13 +1,15 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, callPackage
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, rust
|
||||
, rustPlatform
|
||||
, installShellFiles
|
||||
, libobjc
|
||||
, Security
|
||||
, CoreServices
|
||||
, Metal
|
||||
, Foundation
|
||||
, librusty_v8 ? callPackage ./librusty_v8.nix { }
|
||||
}:
|
||||
|
||||
|
@ -26,7 +28,7 @@ rustPlatform.buildRustPackage rec {
|
|||
# Install completions post-install
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security CoreServices ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ libobjc Security CoreServices Metal Foundation ];
|
||||
|
||||
# The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
|
||||
# To avoid this we pre-download the file and place it in the locations it will require it in advance
|
||||
|
|
|
@ -3607,7 +3607,8 @@ in
|
|||
};
|
||||
|
||||
deno = callPackage ../development/web/deno {
|
||||
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
|
||||
inherit (darwin) libobjc;
|
||||
inherit (darwin.apple_sdk.frameworks) Security CoreServices Metal Foundation;
|
||||
};
|
||||
|
||||
detox = callPackage ../tools/misc/detox { };
|
||||
|
|
Loading…
Reference in New Issue