mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
8b58a7187c
The `pkgs.yabar` package is relatively old (2016-04) and contains several issues fixed on master. `yabar-unstable` containsa recent master build with several fixes and a lot of new features (I use `yabar-unstable` for some time now and had no issues with it). In the upstream bugtracker some bugs could be fixed on ArchLinux by simply installing `yabar-git` (an AUR package which builds a recent master). To stabilize the module, the option `programs.yabar.package` now defaults to `pkgs.yabar-unstable` and yields a warning with several linked issues that are known on `pkgs.yabar`. The test has been refactored as well to ensure that `yabar` actually starts (and avoid non-deterministic random success) and takes a screenshot of a very minimalistic configuration on IceWM. Fixes #46899
34 lines
677 B
Nix
34 lines
677 B
Nix
import ./make-test.nix ({ pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
name = "yabar";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ ma27 ];
|
|
};
|
|
|
|
machine = {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
services.xserver.displayManager.auto.user = "bob";
|
|
|
|
programs.yabar.enable = true;
|
|
programs.yabar.bars = {
|
|
top.indicators.date.exec = "YABAR_DATE";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
$machine->start;
|
|
$machine->waitForX;
|
|
|
|
# confirm proper startup
|
|
$machine->waitForUnit("yabar.service", "bob");
|
|
$machine->sleep(10);
|
|
$machine->waitForUnit("yabar.service", "bob");
|
|
|
|
$machine->screenshot("top_bar");
|
|
'';
|
|
})
|