···6, ant
7, makeWrapper
8, makeDesktopItem
09}:
1011let
···2627in stdenv.mkDerivation {
28 pname = "domination";
29- version = "1.2.3";
3031 # The .zip releases do not contain the build.xml file
32 src = fetchsvn {
···34 # There are no tags in the repository.
35 # Look for commits like "new version x.y.z info on website"
36 # or "website update for x.y.z".
37- rev = "1964";
38- sha256 = "0718gns8d69a1dfq3ywc9kddl1khnrmxqyal7brckbjgay8dq42f";
39 };
4041 nativeBuildInputs = [
···44 makeWrapper
45 ];
4647- buildPhase = "ant";
0004849 installPhase = ''
50 # Remove unnecessary files and launchers (they'd need to be wrapped anyway)
···75 "$out/share/applications/Domination Map Editor.desktop"
76 install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
77 '';
00007879 meta = with lib; {
80 homepage = "http://domination.sourceforge.net/";
···6, ant
7, makeWrapper
8, makeDesktopItem
9+, nixosTests
10}:
1112let
···2728in stdenv.mkDerivation {
29 pname = "domination";
30+ version = "1.2.4";
3132 # The .zip releases do not contain the build.xml file
33 src = fetchsvn {
···35 # There are no tags in the repository.
36 # Look for commits like "new version x.y.z info on website"
37 # or "website update for x.y.z".
38+ rev = "2109";
39+ sha256 = "sha256-awTaEkv0zUXgrKVKuFzi5sgHgrfiNmAFMODO5U0DL6I=";
40 };
4142 nativeBuildInputs = [
···45 makeWrapper
46 ];
4748+ buildPhase = ''
49+ cd swingUI
50+ ant
51+ '';
5253 installPhase = ''
54 # Remove unnecessary files and launchers (they'd need to be wrapped anyway)
···79 "$out/share/applications/Domination Map Editor.desktop"
80 install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
81 '';
82+83+ passthru.tests = {
84+ domination-starts = nixosTests.domination;
85+ };
8687 meta = with lib; {
88 homepage = "http://domination.sourceforge.net/";