Skip to content

Commit

Permalink
sdl3: assert that wayland is built with opengl
Browse files Browse the repository at this point in the history
Wayland support in SDL3 requires OpenGL. Without it the wayland support
is silently skipped in the built library.
  • Loading branch information
marcin-serwin committed Feb 5, 2025
1 parent 0b12583 commit a4b3b25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/by-name/sd/sdl3/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
}:

assert waylandSupport -> openglSupport;

stdenv.mkDerivation (finalAttrs: {
pname = "sdl3";
version = "3.2.2";
Expand Down

0 comments on commit a4b3b25

Please sign in to comment.