mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
sdl3: make tray support optional
This commit is contained in:
parent
73f255a43c
commit
d83ebe17f2
1 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,7 @@
|
||||||
libudevSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
libudevSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||||
sndioSupport ? false,
|
sndioSupport ? false,
|
||||||
testSupport ? true,
|
testSupport ? true,
|
||||||
|
traySupport ? true,
|
||||||
waylandSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
waylandSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||||
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
|
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
|
||||||
}:
|
}:
|
||||||
|
@ -121,7 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
libusb1
|
libusb1
|
||||||
]
|
]
|
||||||
++ lib.optional (
|
++ lib.optional (
|
||||||
stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isDarwin
|
stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isDarwin && traySupport
|
||||||
) libayatana-appindicator
|
) libayatana-appindicator
|
||||||
++ lib.optional alsaSupport alsa-lib
|
++ lib.optional alsaSupport alsa-lib
|
||||||
++ lib.optional dbusSupport dbus
|
++ lib.optional dbusSupport dbus
|
||||||
|
@ -168,6 +169,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
(lib.cmakeBool "SDL_PULSEAUDIO" pulseaudioSupport)
|
(lib.cmakeBool "SDL_PULSEAUDIO" pulseaudioSupport)
|
||||||
(lib.cmakeBool "SDL_SNDIO" sndioSupport)
|
(lib.cmakeBool "SDL_SNDIO" sndioSupport)
|
||||||
(lib.cmakeBool "SDL_TEST_LIBRARY" testSupport)
|
(lib.cmakeBool "SDL_TEST_LIBRARY" testSupport)
|
||||||
|
(lib.cmakeBool "SDL_TRAY_DUMMY" (!traySupport))
|
||||||
(lib.cmakeBool "SDL_WAYLAND" waylandSupport)
|
(lib.cmakeBool "SDL_WAYLAND" waylandSupport)
|
||||||
(lib.cmakeBool "SDL_WAYLAND_LIBDECOR" libdecorSupport)
|
(lib.cmakeBool "SDL_WAYLAND_LIBDECOR" libdecorSupport)
|
||||||
(lib.cmakeBool "SDL_X11" x11Support)
|
(lib.cmakeBool "SDL_X11" x11Support)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue