From 34a95389bb764935f87a9cf8ebad81dbeae8b565 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 10 Sep 2024 18:15:50 -0400 Subject: [PATCH] quakespasm: fix build on Darwin QuakeSpasm tries to use a 10.6 deployment target on Darwin, which is too old for SDL2. Use the default to fix the build. --- pkgs/games/quakespasm/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/games/quakespasm/default.nix b/pkgs/games/quakespasm/default.nix index 5b124cb464d1..28c925b5249e 100644 --- a/pkgs/games/quakespasm/default.nix +++ b/pkgs/games/quakespasm/default.nix @@ -20,6 +20,11 @@ stdenv.mkDerivation rec { ./quakespasm-darwin-makefile-improvements.patch ]; + # Quakespasm tries to set a 10.6 deployment target, but that’s too low for SDL2. + postPatch = '' + sed -i Makefile.darwin -e '/-mmacosx-version-min/d' + ''; + nativeBuildInputs = [ copyDesktopItems pkg-config