aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/tests/installed-tests/ibus.nix
blob: af54b612b507b8c25d2accaed2283e17467f0e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, makeInstalledTest, ... }:

makeInstalledTest {
  tested = pkgs.ibus;

  testConfig = {
    i18n.inputMethod.enabled = "ibus";
  };

  preTestScript = ''
    # ibus has ibus-desktop-testing-runner but it tries to manage desktop session so we just spawn ibus-daemon ourselves
    machine.succeed("ibus-daemon --daemonize --verbose")
  '';

  withX11 = true;

  # TODO: ibus-daemon is currently crashing or something
  # maybe make ibus systemd service that auto-restarts?
  meta.broken = true;
}