Unverified Commit a66eda86 authored by Albert Larsan's avatar Albert Larsan
Browse files

sdl3: Allow building without windowing protocols

It is an explicit choice to disable both x11 and wayland here, so this
is not an error.
parent aff50c7f
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -178,6 +178,16 @@ 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;