diff --git a/lib/maintainers.nix b/lib/maintainers.nix index def1c4a22d96..4841f1e34fe6 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -315,6 +315,7 @@ tstrobel = "Thomas Strobel "; ttuegel = "Thomas Tuegel "; tv = "Tomislav Viljetić "; + tvestelind = "Tomas Vestelind "; twey = "James ‘Twey’ Kay "; urkud = "Yury G. Kudryashov "; vandenoever = "Jos van den Oever "; diff --git a/pkgs/games/vassal/default.nix b/pkgs/games/vassal/default.nix new file mode 100644 index 000000000000..319453c80194 --- /dev/null +++ b/pkgs/games/vassal/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, jre, makeWrapper }: + +stdenv.mkDerivation rec { + name = "VASSAL-3.2.15"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/vassalengine/${name}-linux.tar.bz2"; + sha256 = "10ng571nxr5zc2nlviyrk5bci8my67kq3qvhfn9bifzkxmjlqmk9"; + }; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin $out/share/vassal $out/doc + + cp CHANGES LICENSE README $out + cp -R lib/* $out/share/vassal + cp -R doc/* $out/doc + + makeWrapper ${jre}/bin/java $out/bin/vassal \ + --add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \ + VASSAL.launch.ModuleManager" + ''; + + # Don't move doc to share/, VASSAL expects it to be in the root + forceShare = [ "man" "info" ]; + + meta = with stdenv.lib; { + description = "A free, open-source boardgame engine"; + homepage = http://www.vassalengine.org/; + license = licenses.lgpl21; + maintainers = with maintainers; [ tvestelind ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index da91b8460487..5f9d214bf1b7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14498,6 +14498,8 @@ let ut2004demo = callPackage ../games/ut2004demo { }; + vassal = callPackage ../games/vassal { }; + vdrift = callPackage ../games/vdrift { }; vectoroids = callPackage ../games/vectoroids { };