vassal: 3.3.2 -> 3.14.12

Extra changes:

  - use variables to avoid repetition
  - update licence
  - use fetczip
This commit is contained in:
Samuel Rivas 2020-12-29 19:32:16 +01:00
parent 4fc53b59ae
commit 63faa127df
No known key found for this signature in database
GPG key ID: F06490E15A1FB68A

View file

@ -1,11 +1,12 @@
{ stdenv, fetchurl, jre, makeWrapper }:
{ stdenv, fetchzip, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "VASSAL-3.3.2";
pname = "VASSAL";
version = "3.4.12";
src = fetchurl {
url = "mirror://sourceforge/vassalengine/${name}-linux.tar.bz2";
sha256 = "1abhlkl27gyfa1lghvv76xa6ks5hiwv2s9wb9ddadm0m07f87n1w";
src = fetchzip {
url = "https://github.com/vassalengine/vassal/releases/download/${version}/${pname}-${version}-linux.tar.bz2";
sha256 = "0xn403fxz6ay5lv8whyfdq611kvxj5q309bj317yw5cxbb08w1yb";
};
buildInputs = [ makeWrapper ];
@ -13,7 +14,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin $out/share/vassal $out/doc
cp CHANGES LICENSE README $out
cp CHANGES LICENSE README.md $out
cp -R lib/* $out/share/vassal
cp -R doc/* $out/doc
@ -28,7 +29,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "A free, open-source boardgame engine";
homepage = "http://www.vassalengine.org/";
license = licenses.lgpl21;
license = licenses.lgpl21Only;
maintainers = with maintainers; [ tvestelind ];
platforms = platforms.linux;
};