From 06da1d00991486bc402362cfc98350cdc43f48dd Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Tue, 19 May 2026 10:19:49 -0400 Subject: [PATCH] ballerburg: fix Darwin build Assisted-by: Codex:gpt-5.5 --- pkgs/by-name/ba/ballerburg/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/ba/ballerburg/package.nix b/pkgs/by-name/ba/ballerburg/package.nix index 1c3a003b68aad..355ef471140b4 100644 --- a/pkgs/by-name/ba/ballerburg/package.nix +++ b/pkgs/by-name/ba/ballerburg/package.nix @@ -34,6 +34,16 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ SDL ]; + # CMake's default framework search order on Darwin finds Kernel.framework + # headers while detecting SDL 1.2, which makes standard includes like + # resolve to the wrong SDK header and breaks the build. + # Keep this package on the old Nixpkgs search order without restoring it + # globally: https://github.com/NixOS/nixpkgs/pull/455592 + # CMake docs: https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_FRAMEWORK.html + cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_FIND_FRAMEWORK=LAST" + ]; + desktopItems = [ (makeDesktopItem { name = "Ballerburg";