1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/games/vassal/default.nix
Matthew Bauer a71ce8f8d1 vassal: 3.2.15 -> 3.2.17
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:
- built on NixOS
- ran `/nix/store/6kxxp00xj8r1qh4kvvjdg954w00vpk57-VASSAL-3.2.17/bin/vassal -h` got 0 exit code
- ran `/nix/store/6kxxp00xj8r1qh4kvvjdg954w00vpk57-VASSAL-3.2.17/bin/vassal --help` got 0 exit code
- ran `/nix/store/6kxxp00xj8r1qh4kvvjdg954w00vpk57-VASSAL-3.2.17/bin/vassal --version` and found version 3.2.17
- found 3.2.17 with grep in /nix/store/6kxxp00xj8r1qh4kvvjdg954w00vpk57-VASSAL-3.2.17
2018-03-17 02:55:53 -05:00

36 lines
983 B
Nix

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