From 4a182d21a68a41aedf141068d0607ed68d864931 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 5 Dec 2024 15:31:12 -0800 Subject: [PATCH] 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 --- package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.nix b/package.nix index a050b01e2..c3c08a63b 100644 --- a/package.nix +++ b/package.nix @@ -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