Merge pull request #283912 from r-ryantm/auto-update/unciv

unciv: 4.9.19 -> 4.10.4
This commit is contained in:
Weijia Wang 2024-01-30 07:26:29 +01:00 committed by GitHub
commit 5f22982197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,20 +18,20 @@ let
categories = [ "Game" ];
};
envLibPath = lib.makeLibraryPath [
envLibPath = lib.makeLibraryPath (lib.optionals stdenv.isLinux [
libGL
libpulseaudio
libXxf86vm
];
]);
in
stdenv.mkDerivation rec {
pname = "unciv";
version = "4.9.19";
version = "4.10.4";
src = fetchurl {
url = "https://github.com/yairm210/Unciv/releases/download/${version}/Unciv.jar";
hash = "sha256-C591QKk36v4GAO2oXLOHE4B2RpOObtriN6EPC+xXKnc=";
hash = "sha256-GWGmb3xAMwb7rLMQfW9CzXke9aqXjMWlPILoZiaUHPE=";
};
dontUnpack = true;
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/unciv \
--prefix LD_LIBRARY_PATH : ${envLibPath} \
--prefix LD_LIBRARY_PATH : "${envLibPath}" \
--prefix PATH : ${lib.makeBinPath [ jre ]} \
--add-flags "-jar ${src}"