diff --git a/pkgs/applications/misc/waybar/default.nix b/pkgs/applications/misc/waybar/default.nix index c25708c260e2..5e5e1bead5a1 100644 --- a/pkgs/applications/misc/waybar/default.nix +++ b/pkgs/applications/misc/waybar/default.nix @@ -15,6 +15,7 @@ , gtk-layer-shell , howard-hinnant-date , libxkbcommon +, runTests ? true, catch2 , traySupport ? true, libdbusmenu-gtk3 , pulseSupport ? true, libpulseaudio , sndioSupport ? true, sndio @@ -60,6 +61,9 @@ stdenv.mkDerivation rec { ++ optional swaySupport sway ++ optional mpdSupport libmpdclient; + checkInputs = [ catch2 ]; + doCheck = runTests; + mesonFlags = (lib.mapAttrsToList (option: enable: "-D${option}=${if enable then "enabled" else "disabled"}") { @@ -70,6 +74,7 @@ stdenv.mkDerivation rec { libudev = udevSupport; mpd = mpdSupport; rfkill = rfkillSupport; + tests = runTests; } ) ++ [ "-Dsystemd=disabled"