Unverified Commit 02fb5aea authored by Grimmauld's avatar Grimmauld Committed by GitHub
Browse files

sdl3: Allow building without windowing protocols (#460307)

parents 2ce537dd a66eda86
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;