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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user