10 stdenv.mkDerivation rec {
15 url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
16 sha256 = "sha256-3P3f6X2c5lF1AizEs9z59MhLy0Ntg203rkPAkv+SBtw=";
31 mkdir -p $out/bin $out/share/vassal $out/doc
33 cp CHANGES LICENSE README.md $out
34 cp -R lib/* $out/share/vassal
37 makeWrapper ${jre}/bin/java $out/bin/vassal \
38 --add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \
39 VASSAL.launch.ModuleManager"
44 # Don't move doc to share/, VASSAL expects it to be in the root
45 forceShare = [ "man" "info" ];
48 description = "Free, open-source boardgame engine";
49 homepage = "https://vassalengine.org/";
50 sourceProvenance = with sourceTypes; [ binaryBytecode ];
51 license = licenses.lgpl21Only;
52 maintainers = with maintainers; [ tvestelind ];
53 platforms = platforms.unix;
54 mainProgram = "vassal";