mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +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,
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue