Skip to content

Commit 0c955df

Browse files
authored
Merge pull request #275377 from 06kellyjac/deno_darwin
deno: fix darwin build
2 parents 9c4ac04 + 5206e20 commit 0c955df

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkgs/development/web/deno/default.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec {
2727
postPatch = ''
2828
# upstream uses lld on aarch64-darwin for faster builds
2929
# within nix lld looks for CoreFoundation rather than CoreFoundation.tbd and fails
30-
substituteInPlace .cargo/config.toml --replace '"-C", "link-arg=-fuse-ld=lld"' ""
30+
substituteInPlace .cargo/config.toml --replace "-fuse-ld=lld " ""
3131
'';
3232

3333
# uses zlib-ng but can't dynamically link yet
@@ -41,7 +41,14 @@ rustPlatform.buildRustPackage rec {
4141
];
4242
buildInputs = lib.optionals stdenv.isDarwin (
4343
[ libiconv darwin.libobjc ] ++
44-
(with darwin.apple_sdk.frameworks; [ Security CoreServices Metal Foundation QuartzCore ])
44+
(with darwin.apple_sdk_11_0.frameworks; [
45+
Security
46+
CoreServices
47+
Metal
48+
MetalPerformanceShaders
49+
Foundation
50+
QuartzCore
51+
])
4552
);
4653

4754
# work around "error: unknown warning group '-Wunused-but-set-parameter'"

0 commit comments

Comments
 (0)