2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip, jre, makeWrapper }:
|
2016-01-23 01:42:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-29 18:32:16 +00:00
|
|
|
pname = "VASSAL";
|
|
|
|
version = "3.4.12";
|
2016-01-23 01:42:51 +00:00
|
|
|
|
2020-12-29 18:32:16 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
|
|
|
|
sha256 = "0xn403fxz6ay5lv8whyfdq611kvxj5q309bj317yw5cxbb08w1yb";
|
2016-01-23 01:42:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/vassal $out/doc
|
|
|
|
|
2020-12-29 18:32:16 +00:00
|
|
|
cp CHANGES LICENSE README.md $out
|
2016-01-23 01:42:51 +00:00
|
|
|
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" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-02-01 13:00:45 +00:00
|
|
|
description = "A free, open-source boardgame engine";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.vassalengine.org/";
|
2020-12-29 18:32:16 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2016-01-23 01:42:51 +00:00
|
|
|
maintainers = with maintainers; [ tvestelind ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|