From a66eda860aa43e6d0da37ef3ddde91134adaf281 Mon Sep 17 00:00:00 2001 From: Albert Larsan Date: Mon, 10 Nov 2025 11:05:57 +0100 Subject: [PATCH] sdl3: Allow building without windowing protocols It is an explicit choice to disable both x11 and wayland here, so this is not an error. --- pkgs/by-name/sd/sdl3/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/sdl3/package.nix b/pkgs/by-name/sd/sdl3/package.nix index 8488b5345258..17a3d9c06860 100644 --- a/pkgs/by-name/sd/sdl3/package.nix +++ b/pkgs/by-name/sd/sdl3/package.nix @@ -178,7 +178,17 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "SDL_TESTS" true) (lib.cmakeBool "SDL_INSTALL_TESTS" true) (lib.cmakeBool "SDL_DEPS_SHARED" false) - ]; + ] + ++ + lib.optionals + ( + stdenv.hostPlatform.isUnix + && !(stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isAndroid) + && !(x11Support || waylandSupport) + ) + [ + (lib.cmakeBool "SDL_UNIX_CONSOLE_BUILD" true) + ]; doCheck = true;