Unverified Commit fd442c50 authored by Marcin Serwin's avatar Marcin Serwin
Browse files

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.
parent d2a61b2d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";