mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 14:09:17 +03:00
parent
fb29a558c8
commit
d60b01aea3
2 changed files with 7 additions and 3 deletions
|
@ -10,6 +10,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
sound.enable = true;
|
||||||
environment.systemPackages = [ pkgs.domination ];
|
environment.systemPackages = [ pkgs.domination ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,6 +19,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
machine.wait_for_x()
|
machine.wait_for_x()
|
||||||
|
# Add a dummy sound card, or an error reporting popup will appear,
|
||||||
|
# covering the main window and preventing OCR
|
||||||
|
machine.execute("modprobe snd-dummy")
|
||||||
machine.execute("domination >&2 &")
|
machine.execute("domination >&2 &")
|
||||||
machine.wait_for_window("Menu")
|
machine.wait_for_window("Menu")
|
||||||
machine.wait_for_text(r"(New Game|Start Server|Load Game|Help Manual|Join Game|About|Play Online)")
|
machine.wait_for_text(r"(New Game|Start Server|Load Game|Help Manual|Join Game|About|Play Online)")
|
||||||
|
|
|
@ -26,7 +26,7 @@ let
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
pname = "domination";
|
pname = "domination";
|
||||||
version = "1.2.9";
|
version = "1.3.0";
|
||||||
|
|
||||||
# The .zip releases do not contain the build.xml file
|
# The .zip releases do not contain the build.xml file
|
||||||
src = fetchsvn {
|
src = fetchsvn {
|
||||||
|
@ -34,8 +34,8 @@ in stdenv.mkDerivation {
|
||||||
# There are no tags in the repository.
|
# There are no tags in the repository.
|
||||||
# Look for commits like "new version x.y.z info on website"
|
# Look for commits like "new version x.y.z info on website"
|
||||||
# or "website update for x.y.z".
|
# or "website update for x.y.z".
|
||||||
rev = "2470";
|
rev = "2530";
|
||||||
hash = "sha256-ghq7EGg++mTOzA3ASzXhk97fzy5/n9vyaRzxp12X3/4=";
|
hash = "sha256-LR4s8JmRs61IhQB2ASSM6MGt+ev+ENFPa5iIeE1tOyI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue