mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
736884108d
nixpkgs currently mixes sgtpuzzles/sgt-puzzles across filenames, packages, tests. This inconsistency is frequently annoying. Let's unify on "sgt-puzzles", on the basis that: * "sgt-puzzles" is the package filename. * Alpine/FreeBSD/Debian use "sgt-puzzles". No other distro uses "sgtpuzzles". https://repology.org/project/sgt-puzzles/versions
35 lines
593 B
Nix
35 lines
593 B
Nix
import ./make-test-python.nix ({ pkgs, ...} :
|
|
{
|
|
name = "sgt-puzzles";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ tomfitzhenry ];
|
|
};
|
|
|
|
nodes.machine = { ... }:
|
|
|
|
{
|
|
imports = [
|
|
./common/x11.nix
|
|
];
|
|
|
|
services.xserver.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
sgt-puzzles
|
|
];
|
|
};
|
|
|
|
enableOCR = true;
|
|
|
|
testScript = { nodes, ... }:
|
|
''
|
|
start_all()
|
|
machine.wait_for_x()
|
|
|
|
machine.execute("mines >&2 &")
|
|
|
|
machine.wait_for_window("Mines")
|
|
machine.wait_for_text("Marked")
|
|
machine.screenshot("mines")
|
|
'';
|
|
})
|