2016-01-23 01:42:51 +00:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 07:55:53 +00:00
|
|
|
name = "VASSAL-3.2.17";
|
2016-01-23 01:42:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-28 12:07:42 +00:00
|
|
|
url = "mirror://sourceforge/vassalengine/${name}-linux.tar.bz2";
|
2018-03-17 07:55:53 +00:00
|
|
|
sha256 = "0nxskr46janxnb31c03zv61kr46vy98l7cwxha3vll81l4ij1sjb";
|
2016-01-23 01:42:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2016-02-01 13:00:45 +00:00
|
|
|
description = "A free, open-source boardgame engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.vassalengine.org/";
|
2016-01-23 16:36:57 +00:00
|
|
|
license = licenses.lgpl21;
|
2016-01-23 01:42:51 +00:00
|
|
|
maintainers = with maintainers; [ tvestelind ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|