turbo: migrate to new darwin SDK pattern

Part of #354146
This commit is contained in:
seth 2024-11-13 21:57:31 -05:00
parent 00baab49a1
commit 16f8f20ef4
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -1,11 +1,10 @@
{
stdenv,
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
apple-sdk_11,
capnproto,
darwin,
extra-cmake-modules,
fetchFromGitHub,
fontconfig,
llvmPackages,
nix-update-script,
@ -13,6 +12,7 @@
pkg-config,
protobuf,
rust-jemalloc-sys,
rustPlatform,
zlib,
}:
@ -39,21 +39,12 @@ rustPlatform.buildRustPackage rec {
# https://github.com/vercel/turbo/blob/ea740706e0592b3906ab34c7cfa1768daafc2a84/CONTRIBUTING.md#linux-dependencies
++ lib.optional stdenv.hostPlatform.isLinux llvmPackages.bintools;
buildInputs =
[
fontconfig
openssl
rust-jemalloc-sys
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk_11_0.frameworks;
[
CoreFoundation
CoreServices
IOKit
]
);
buildInputs = [
fontconfig
openssl
rust-jemalloc-sys
zlib
] ++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
cargoBuildFlags = [
"--package"