10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-t3Y576dXWp2Mj6OSQN5cm9FuNBWNqKq6xxkVRbjIBgE=";
21 nativeBuildInputs = [ copyDesktopItems makeWrapper ];
22 buildInputs = [ jdk ];
28 javac -d out/ -sourcepath src/ -classpath out/ -encoding utf8 src/**/*.java
37 mv out $out/lib/graphwar
38 cp -r rsc $out/lib/graphwar/rsc
40 makeWrapper ${jdk}/bin/java $out/bin/graphwar \
41 --add-flags "-classpath $out/lib/graphwar Graphwar.Graphwar"
42 makeWrapper ${jdk}/bin/java $out/bin/graphwar-roomserver \
43 --add-flags "-classpath $out/lib/graphwar RoomServer.RoomServer"
44 makeWrapper ${jdk}/bin/java $out/bin/graphwar-globalserver \
45 --add-flags "-classpath $out/lib/graphwar GlobalServer.GlobalServer"
54 desktopName = "Graphwar";
55 categories = [ "Game" ];
60 homepage = "http://www.graphwar.com/";
61 description = "Artillery game in which you must hit your enemies using mathematical functions";
62 license = licenses.gpl3Plus;
63 platforms = jdk.meta.platforms;
64 maintainers = with maintainers; [ yrd ];