From fdf9251b3b03439ae71af1367be9c529b64c777d Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 1 Nov 2025 22:59:02 +0100 Subject: [PATCH] taffybar: add test dependencies Even though I couldn't find any obvious differences between our setup here and the upstream CI (if python-dbusmock and upower are addded), running the dbusmock tests doesn't work. TAFFYBAR_{TEST_,}VERBOSE doesn't give many insights unfortunately. --- .../haskell-modules/configuration-nix.nix | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 526a96d59fc3..24d363c906f0 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -577,6 +577,26 @@ builtins.intersectAttrs super { # Disable tests because they require a running dbus session xmonad-dbus = dontCheck super.xmonad-dbus; + taffybar = lib.pipe super.taffybar [ + (overrideCabal (drv: { + testDepends = + drv.testDepends or [ ] + ++ map lib.getBin [ + pkgs.xorg.xorgserver + pkgs.xorg.xprop + pkgs.xorg.xrandr + pkgs.xdummy + pkgs.xterm + pkgs.dbus + ]; + testFlags = drv.testFlags or [ ] ++ [ + # TODO(@rvl): figure out why this doesn't work in Nixpkgs + "--skip=/python-dbusmock System services/" + ]; + })) + (self.generateOptparseApplicativeCompletions [ "taffybar" ]) + ]; + # Test suite requires running a docker container via testcontainers amqp-streamly = dontCheck super.amqp-streamly;