3 # jdk8 is needed for building, but the game runs on newer jres as well
14 desktopItem = makeDesktopItem {
16 desktopName = "Domination";
20 editorDesktopItem = makeDesktopItem {
21 name = "domination-map-editor";
22 desktopName = "Domination Map Editor";
23 exec = "domination-map-editor";
27 in stdenv.mkDerivation {
31 # The .zip releases do not contain the build.xml file
33 url = "https://svn.code.sf.net/p/domination/code/Domination";
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".
38 sha256 = "sha256-XuPMxGDap8x7I+U7+1C+DlkQkoV/u2FCwYyTZFWmYHM=";
62 # Remove unnecessary files and launchers (they'd need to be wrapped anyway)
70 mkdir -p $out/share/domination
71 cp -r build/game/* $out/share/domination/
73 # Reimplement the two launchers mentioned in Unix_shortcutSpec.xml with makeWrapper
75 makeWrapper ${jre}/bin/java $out/bin/domination \
76 --chdir "$out/share/domination" \
77 --add-flags "-jar $out/share/domination/Domination.jar"
78 makeWrapper ${jre}/bin/java $out/bin/domination-map-editor \
79 --chdir "$out/share/domination" \
80 --add-flags "-cp $out/share/domination/Domination.jar net.yura.domination.ui.swinggui.SwingGUIFrame"
82 install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
87 domination-starts = nixosTests.domination;
91 homepage = "http://domination.sourceforge.net/";
92 downloadPage = "http://domination.sourceforge.net/download.shtml";
93 description = "A game that is a bit like the board game Risk or RisiKo";
95 Domination is a game that is a bit like the well known board game of Risk
96 or RisiKo. It has many game options and includes many maps.
97 It includes a map editor, a simple map format, multiplayer network play,
98 single player, hotseat, 5 user interfaces and many more features.
100 sourceProvenance = with sourceTypes; [
102 binaryBytecode # source bundles dependencies as jars
104 license = licenses.gpl3;
105 maintainers = with maintainers; [ fgaz ];
106 platforms = platforms.all;