nix: remove qtwayland dependency when qt >= 6.10

QtWaylandClient was moved into QtBase in 6.10. The QtWayland packages
is now only the wayland server code which Quickshell does not need.
This commit is contained in:
outfoxxed 2025-10-04 12:49:36 -07:00
parent 7fc6635ca8
commit b254f6dabc
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -57,6 +57,7 @@
spirv-tools spirv-tools
pkg-config pkg-config
] ]
++ lib.optional (withWayland && lib.strings.compareVersions qt6.qtbase.version "6.10.0" == -1) qt6.qtwayland
++ lib.optionals withWayland [ ++ lib.optionals withWayland [
qt6.qtwayland # qtwaylandscanner required at build time qt6.qtwayland # qtwaylandscanner required at build time
wayland-scanner wayland-scanner
@ -70,7 +71,8 @@
++ lib.optional withQtSvg qt6.qtsvg ++ lib.optional withQtSvg qt6.qtsvg
++ lib.optional withCrashReporter breakpad ++ lib.optional withCrashReporter breakpad
++ lib.optional withJemalloc jemalloc ++ lib.optional withJemalloc jemalloc
++ lib.optionals withWayland [ qt6.qtwayland wayland wayland-protocols ] ++ lib.optional (withWayland && lib.strings.compareVersions qt6.qtbase.version "6.10.0" == -1) qt6.qtwayland
++ lib.optionals withWayland [ wayland wayland-protocols ]
++ lib.optionals (withWayland && libgbm != null) [ libdrm libgbm ] ++ lib.optionals (withWayland && libgbm != null) [ libdrm libgbm ]
++ lib.optional withX11 xorg.libxcb ++ lib.optional withX11 xorg.libxcb
++ lib.optional withPam pam ++ lib.optional withPam pam