1 { lib, stdenv, fetchzip, jre, makeWrapper }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
9 sha256 = "sha256-WTYMbVtAciscnBzR4uHmVVXpuge53e32uLmUF8/w6I0=";
12 nativeBuildInputs = [ makeWrapper ];
17 mkdir -p $out/bin $out/share/vassal $out/doc
19 cp CHANGES LICENSE README.md $out
20 cp -R lib/* $out/share/vassal
23 makeWrapper ${jre}/bin/java $out/bin/vassal \
24 --add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \
25 VASSAL.launch.ModuleManager"
30 # Don't move doc to share/, VASSAL expects it to be in the root
31 forceShare = [ "man" "info" ];
34 description = "A free, open-source boardgame engine";
35 homepage = "https://vassalengine.org/";
36 sourceProvenance = with sourceTypes; [ binaryBytecode ];
37 license = licenses.lgpl21Only;
38 maintainers = with maintainers; [ tvestelind ];
39 platforms = platforms.unix;