13 version = "4.13.2-redo";
15 desktopItem = makeDesktopItem {
18 comment = "An open-source Android/Desktop remake of Civ V";
19 desktopName = "Unciv";
21 categories = [ "Game" ];
24 desktopIcon = fetchurl {
25 url = "https://github.com/yairm210/Unciv/blob/${version}/extraImages/Icons/Unciv%20icon%20v6.png?raw=true";
26 hash = "sha256-Zuz+HGfxjGviGBKTiHdIFXF8UMRLEIfM8f+LIB/xonk=";
29 envLibPath = lib.makeLibraryPath (lib.optionals stdenv.hostPlatform.isLinux [
36 stdenv.mkDerivation rec {
41 url = "https://github.com/yairm210/Unciv/releases/download/${version}/Unciv.jar";
42 hash = "sha256-bZXBgSjmW+fBdDfG7cqKkF4VLYw7Iq2mw5j6iDh2ZhY=";
47 nativeBuildInputs = [ copyDesktopItems makeWrapper ];
52 makeWrapper ${jre}/bin/java $out/bin/unciv \
53 --prefix LD_LIBRARY_PATH : "${envLibPath}" \
54 --prefix PATH : ${lib.makeBinPath [ jre ]} \
55 --add-flags "-jar ${src}"
57 install -Dm444 ${desktopIcon} $out/share/icons/hicolor/512x512/apps/unciv.png
62 desktopItems = [ desktopItem ];
65 description = "Open-source Android/Desktop remake of Civ V";
66 mainProgram = "unciv";
67 homepage = "https://github.com/yairm210/Unciv";
68 maintainers = with maintainers; [ tex ];
69 sourceProvenance = with sourceTypes; [ binaryBytecode ];
70 license = licenses.mpl20;
71 platforms = platforms.all;