sdl3: Allow building without windowing protocols

It is an explicit choice to disable both x11 and wayland here, so this
is not an error.
This commit is contained in:
Albert Larsan
2025-11-10 12:08:40 +01:00
parent aff50c7fed
commit a66eda860a
+11 -1
View File
@@ -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;