turbo: migrate to new darwin SDK pattern (#355802)

This commit is contained in:
Sefa Eyeoglu 2024-11-14 08:12:51 +01:00 committed by GitHub
commit 1969869b07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"