build: fix on x86_64-darwin

Lix requires a non-antiquated macOS SDK, and 24.11 does not yet have a
non-antiquated one as default.

Fixes: lix-project/lix#588
Change-Id: Iad19c06d7fefe3a736cdcb39ced185e52dcfcbb8
This commit is contained in:
jade 2024-12-05 15:31:12 -08:00
parent 1ecc07b781
commit 4a182d21a6

View file

@ -2,6 +2,7 @@
pkgs,
lib,
stdenv,
apple-sdk_11,
aws-sdk-cpp,
# If the patched version of Boehm isn't passed, then patch it based off of
# pkgs.boehmgc. This allows `callPackage`ing this file without needing to
@ -306,6 +307,9 @@ stdenv.mkDerivation (finalAttrs: {
libseccomp
busybox-sandbox-shell
]
++ lib.optionals (
stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0"
) [ apple-sdk_11 ]
++ lib.optional internalApiDocs rapidcheck
++ lib.optional hostPlatform.isx86_64 libcpuid
# There have been issues building these dependencies