diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2016-02-01 23:56:12 +0100 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2016-02-01 23:56:12 +0100 |
commit | eeb3600e55649f143291aafcf86538f43f517f4f (patch) | |
tree | 1ca05a37061ee81562c7c63ec4c03d591dda1d28 | |
parent | 269630494f50b2800d329b2147b10816a38a58b5 (diff) | |
parent | 42627b7d5965d65fe0be0edfe841602ee492bc3d (diff) | |
download | nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar.gz nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar.bz2 nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar.lz nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar.xz nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.tar.zst nixlib-eeb3600e55649f143291aafcf86538f43f517f4f.zip |
Merge pull request #12562 from tvestelind/vassal
vassal: new package
-rw-r--r-- | lib/maintainers.nix | 1 | ||||
-rw-r--r-- | pkgs/games/vassal/default.nix | 35 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 38 insertions, 0 deletions
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 <ts468@cam.ac.uk>"; ttuegel = "Thomas Tuegel <ttuegel@gmail.com>"; tv = "Tomislav Viljetić <tv@shackspace.de>"; + tvestelind = "Tomas Vestelind <tomas.vestelind@fripost.org>"; twey = "James ‘Twey’ Kay <twey@twey.co.uk>"; urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>"; vandenoever = "Jos van den Oever <jos@vandenoever.info>"; 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 { }; |