sdl3: assert that wayland is built with opengl

Wayland support in SDL3 requires OpenGL. Without it the wayland support
is silently skipped in the built library.
This commit is contained in:
Marcin Serwin
2025-02-11 17:38:23 +01:00
parent d2a61b2dd4
commit fd442c50f9
+4
View File
@@ -51,6 +51,10 @@
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
}:
assert lib.assertMsg (
waylandSupport -> openglSupport
) "SDL3 requires OpenGL support to enable Wayland";
stdenv.mkDerivation (finalAttrs: {
pname = "sdl3";
version = "3.2.2";