1{ pkgs, ... }:
2{
3 name = "sfxr-qt";
4 meta = with pkgs.lib.maintainers; {
5 maintainers = [ fgaz ];
6 };
7
8 machine =
9 { config, pkgs, ... }:
10 {
11 imports = [
12 ./common/x11.nix
13 ];
14
15 services.xserver.enable = true;
16 environment.systemPackages = [ pkgs.sfxr-qt ];
17 };
18
19 enableOCR = true;
20
21 testScript = ''
22 machine.wait_for_x()
23 # Add a dummy sound card, or the program won't start
24 machine.execute("modprobe snd-dummy")
25
26 machine.execute("sfxr-qt >&2 &")
27
28 machine.wait_for_window(r"sfxr")
29 machine.sleep(10)
30 machine.wait_for_text("requency")
31 machine.screenshot("screen")
32 '';
33}