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: https://git.lix.systems/lix-project/lix/issues/588
Change-Id: Iad19c06d7fefe3a736cdcb39ced185e52dcfcbb8
This commit is contained in:
Jade Lovelace
2024-12-10 12:32:42 -08:00
parent 445b7c7d8a
commit 8ddcdfb59c
+4
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