Skip to content

Commit

Permalink
turbo: migrate to new darwin SDK pattern (#355802)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex authored Nov 14, 2024
2 parents 88750d1 + 16f8f20 commit 1969869
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions pkgs/by-name/tu/turbo-unwrapped/package.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
stdenv,
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
apple-sdk_11,
capnproto,
darwin,
extra-cmake-modules,
fetchFromGitHub,
fontconfig,
llvmPackages,
nix-update-script,
openssl,
pkg-config,
protobuf,
rust-jemalloc-sys,
rustPlatform,
zlib,
}:

Expand All @@ -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"
Expand Down

0 comments on commit 1969869

Please sign in to comment.