depot/third_party/nixpkgs/pkgs/games/vassal/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

35 lines
984 B
Nix

{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "VASSAL-3.3.2";
src = fetchurl {
url = "mirror://sourceforge/vassalengine/${name}-linux.tar.bz2";
sha256 = "1abhlkl27gyfa1lghvv76xa6ks5hiwv2s9wb9ddadm0m07f87n1w";
};
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;
};
}