1{ pkgs, ... }:
2{
3 name = "shattered-pixel-dungeon";
4 meta = with pkgs.lib.maintainers; {
5 maintainers = [ fgaz ];
6 };
7
8 nodes.machine =
9 { config, pkgs, ... }:
10 {
11 imports = [
12 ./common/x11.nix
13 ];
14
15 services.xserver.enable = true;
16 environment.systemPackages = [ pkgs.shattered-pixel-dungeon ];
17 };
18
19 enableOCR = true;
20
21 testScript = ''
22 machine.wait_for_x()
23 machine.execute("shattered-pixel-dungeon >&2 &")
24 machine.wait_for_window(r"Shattered Pixel Dungeon")
25 machine.wait_for_text("Enter")
26 machine.screenshot("screen")
27 '';
28}