mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #275377 from 06kellyjac/deno_darwin
deno: fix darwin build
This commit is contained in:
commit
0c955df39c
@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec {
|
||||
postPatch = ''
|
||||
# upstream uses lld on aarch64-darwin for faster builds
|
||||
# within nix lld looks for CoreFoundation rather than CoreFoundation.tbd and fails
|
||||
substituteInPlace .cargo/config.toml --replace '"-C", "link-arg=-fuse-ld=lld"' ""
|
||||
substituteInPlace .cargo/config.toml --replace "-fuse-ld=lld " ""
|
||||
'';
|
||||
|
||||
# uses zlib-ng but can't dynamically link yet
|
||||
@ -41,7 +41,14 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
buildInputs = lib.optionals stdenv.isDarwin (
|
||||
[ libiconv darwin.libobjc ] ++
|
||||
(with darwin.apple_sdk.frameworks; [ Security CoreServices Metal Foundation QuartzCore ])
|
||||
(with darwin.apple_sdk_11_0.frameworks; [
|
||||
Security
|
||||
CoreServices
|
||||
Metal
|
||||
MetalPerformanceShaders
|
||||
Foundation
|
||||
QuartzCore
|
||||
])
|
||||
);
|
||||
|
||||
# work around "error: unknown warning group '-Wunused-but-set-parameter'"
|
||||
|
Loading…
Reference in New Issue
Block a user