nixpkgs/pkgs/games/vassal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, jre, makeWrapper }:
2016-01-23 01:42:51 +00:00
stdenv.mkDerivation rec {
pname = "VASSAL";
2022-08-14 03:59:44 +00:00
version = "3.6.7";
2016-01-23 01:42:51 +00:00
src = fetchzip {
url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
2022-08-14 03:59:44 +00:00
sha256 = "sha256-WTYMbVtAciscnBzR4uHmVVXpuge53e32uLmUF8/w6I0=";
2016-01-23 01:42:51 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2016-01-23 01:42:51 +00:00
installPhase = ''
runHook preInstall
2016-01-23 01:42:51 +00:00
mkdir -p $out/bin $out/share/vassal $out/doc
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"
runHook postInstall
2016-01-23 01:42:51 +00:00
'';
# Don't move doc to share/, VASSAL expects it to be in the root
forceShare = [ "man" "info" ];
meta = with lib; {
2016-02-01 13:00:45 +00:00
description = "A free, open-source boardgame engine";
homepage = "https://vassalengine.org/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.lgpl21Only;
2016-01-23 01:42:51 +00:00
maintainers = with maintainers; [ tvestelind ];
2021-03-12 05:21:42 +00:00
platforms = platforms.unix;
2016-01-23 01:42:51 +00:00
};
}