From d83ebe17f28e51c06e1cb4d72323e17d289b6de3 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Thu, 5 Jun 2025 23:31:16 +0200 Subject: [PATCH] sdl3: make tray support optional --- pkgs/by-name/sd/sdl3/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sd/sdl3/package.nix b/pkgs/by-name/sd/sdl3/package.nix index 93d16187916d..7e2ac8507c83 100644 --- a/pkgs/by-name/sd/sdl3/package.nix +++ b/pkgs/by-name/sd/sdl3/package.nix @@ -51,6 +51,7 @@ libudevSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid, sndioSupport ? false, testSupport ? true, + traySupport ? true, waylandSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid, x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows, }: @@ -121,7 +122,7 @@ stdenv.mkDerivation (finalAttrs: { libusb1 ] ++ lib.optional ( - stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isDarwin + stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isDarwin && traySupport ) libayatana-appindicator ++ lib.optional alsaSupport alsa-lib ++ lib.optional dbusSupport dbus @@ -168,6 +169,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "SDL_PULSEAUDIO" pulseaudioSupport) (lib.cmakeBool "SDL_SNDIO" sndioSupport) (lib.cmakeBool "SDL_TEST_LIBRARY" testSupport) + (lib.cmakeBool "SDL_TRAY_DUMMY" (!traySupport)) (lib.cmakeBool "SDL_WAYLAND" waylandSupport) (lib.cmakeBool "SDL_WAYLAND_LIBDECOR" libdecorSupport) (lib.cmakeBool "SDL_X11" x11Support)