waybar: add catch2 dep, required for running tests

This commit is contained in:
Luke Granger-Brown 2022-01-16 18:25:34 +00:00
parent 41ec26879a
commit eda3747c9f

View File

@ -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"