deno: fix build on darwin

This commit is contained in:
Mario Rodas 2021-03-14 04:20:00 +00:00
parent d45cf406a4
commit 58bcc97dc2
2 changed files with 6 additions and 3 deletions

View File

@ -1,13 +1,15 @@
{ stdenv { stdenv
, lib , lib
, callPackage , callPackage
, fetchurl
, fetchFromGitHub , fetchFromGitHub
, rust , rust
, rustPlatform , rustPlatform
, installShellFiles , installShellFiles
, libobjc
, Security , Security
, CoreServices , CoreServices
, Metal
, Foundation
, librusty_v8 ? callPackage ./librusty_v8.nix { } , librusty_v8 ? callPackage ./librusty_v8.nix { }
}: }:
@ -26,7 +28,7 @@ rustPlatform.buildRustPackage rec {
# Install completions post-install # Install completions post-install
nativeBuildInputs = [ installShellFiles ]; 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 # 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 # To avoid this we pre-download the file and place it in the locations it will require it in advance

View File

@ -3607,7 +3607,8 @@ in
}; };
deno = callPackage ../development/web/deno { 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 { }; detox = callPackage ../tools/misc/detox { };