Files
nixpkgs/pkgs/by-name/tr/tr-patcher/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchurl,
fetchzip,
jre,
makeWrapper,
}:
let
translation-file = fetchurl {
url = "https://gitlab.com/bmwinger/tr-patcher/-/raw/master/lib/Translation.txt?inline=false";
sha256 = "136zd2s73b4n1w2n34wxi656bm448748nn3y7a64fd89ysg9n7n8";
};
in
stdenv.mkDerivation {
pname = "tr-patcher";
version = "1.0.5";
# use the pre compiled source, as compilation is a bit complex
src = fetchzip {
url = "https://gitlab.com/bmwinger/tr-patcher/uploads/b57899980b2351c136393f02977c4fab/tr-patcher-shadow.zip";
sha256 = "0va7nbmlgf3p2nc0z2b9n1285y4q5rpyjr4w93rdnx38wrhinxnw";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
install -Dm644 lib/tr-patcher-all.jar $out/lib/tr-patcher.jar
install -Dm644 ${translation-file} $out/lib/Translation.txt
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/tr-patcher \
--add-flags "-jar $out/lib/tr-patcher.jar"
'';
meta = with lib; {
description = "Allow to update dependancies of the Tamriel-Data mod for morrowind";
mainProgram = "tr-patcher";
homepage = "https://gitlab.com/bmwinger/tr-patcher";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.gpl3;
maintainers = [ maintainers.marius851000 ];
platforms = platforms.linux;
};
}