1 { stdenv, lib, fetchurl, fetchzip, jre, makeWrapper }:
4 translation-file = fetchurl {
5 url = "https://gitlab.com/bmwinger/tr-patcher/-/raw/master/lib/Translation.txt?inline=false";
6 sha256 = "136zd2s73b4n1w2n34wxi656bm448748nn3y7a64fd89ysg9n7n8";
9 stdenv.mkDerivation rec {
13 # use the pre compiled source, as compilation is a bit complex
15 url = "https://gitlab.com/bmwinger/tr-patcher/uploads/b57899980b2351c136393f02977c4fab/tr-patcher-shadow.zip";
16 sha256 = "0va7nbmlgf3p2nc0z2b9n1285y4q5rpyjr4w93rdnx38wrhinxnw";
19 nativeBuildInputs = [ makeWrapper ];
22 install -Dm644 lib/tr-patcher-all.jar $out/lib/tr-patcher.jar
23 install -Dm644 ${translation-file} $out/lib/Translation.txt
25 makeWrapper ${jre}/bin/java $out/bin/tr-patcher \
26 --add-flags "-jar $out/lib/tr-patcher.jar"
30 description = "Allow to update dependancies of the Tamriel-Data mod for morrowind";
31 mainProgram = "tr-patcher";
32 homepage = "https://gitlab.com/bmwinger/tr-patcher";
33 sourceProvenance = with sourceTypes; [ binaryBytecode ];
34 license = licenses.gpl3;
35 maintainers = [ maintainers.marius851000 ];
36 platforms = platforms.linux;