waybar: fix build without cava support
With Waybar v0.10.0 a new "pipewire" module was added that will display whether certain PipeWire features are certainly in use. Naturally, this option requires libpipewire to be present. And by default it is getting pulled in indeed via "cava" support flag. But when disabling that flag then building Waybar will break due to the missing dependency. Fix this by wiring up a new `pipewireSupport` flag. If either that flag or the `cavaSupport` flag are set then we will pull in the "pipewire" library.
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
, mpdSupport ? true
|
||||
, mprisSupport ? stdenv.isLinux
|
||||
, nlSupport ? true
|
||||
, pipewireSupport ? true
|
||||
, pulseSupport ? true
|
||||
, rfkillSupport ? true
|
||||
, runTests ? true
|
||||
@@ -122,7 +123,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
fftw
|
||||
iniparser
|
||||
ncurses
|
||||
pipewire
|
||||
portaudio
|
||||
]
|
||||
++ lib.optional evdevSupport libevdev
|
||||
@@ -139,6 +139,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
++ lib.optional udevSupport udev
|
||||
++ lib.optional upowerSupport upower
|
||||
++ lib.optional wireplumberSupport wireplumber
|
||||
++ lib.optional (cavaSupport || pipewireSupport) pipewire
|
||||
++ lib.optional (!stdenv.isLinux) libinotify-kqueue;
|
||||
|
||||
nativeCheckInputs = [ catch2_3 ];
|
||||
@@ -154,6 +155,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"man-pages" = true;
|
||||
"mpd" = mpdSupport;
|
||||
"mpris" = mprisSupport;
|
||||
"pipewire" = pipewireSupport;
|
||||
"pulseaudio" = pulseSupport;
|
||||
"rfkill" = rfkillSupport;
|
||||
"sndio" = sndioSupport;
|
||||
|
||||
Reference in New Issue
Block a user