openttd: 14.1 -> 15.0 (#476640)

This commit is contained in:
Gergő Gutyina
2026-01-06 13:34:14 +00:00
committed by GitHub
+3 -19
View File
@@ -67,29 +67,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "openttd";
version = "14.1";
version = "15.0";
src = fetchzip {
url = "https://cdn.openttd.org/openttd-releases/${finalAttrs.version}/openttd-${finalAttrs.version}-source.tar.xz";
hash = "sha256-YT4IE/rJ9pnpeMWKbOra6AbSUwW19RwOKlXkxwoMeKY=";
hash = "sha256-J4M0n5dLM04Xtx3WMxWKVgDbo92QjuuJgPbESpwf1e8=";
};
patches = [
# Fix build against icu-76:
# https://github.com/OpenTTD/OpenTTD/pull/13048
(fetchpatch {
name = "icu-75.patch";
url = "https://github.com/OpenTTD/OpenTTD/commit/14fac2ad37bfb9cec56b4f9169d864f6f1c7b96e.patch";
hash = "sha256-L35ybnTKPO+HVP/7ZYzWM2mA+s1RAywhofSuzpy/6sc=";
})
(fetchpatch {
name = "fix-GCC-15-due-to-missing-CRTP-usage.patch";
url = "https://github.com/OpenTTD/OpenTTD/commit/db36e61807955c896267d6585de0577efd30465d.patch";
hash = "sha256-wJqboBuB+gcn1UPoTlym9IaL7tXtdKEp/E474vG5rYk=";
})
];
nativeBuildInputs = [
cmake
pkg-config
@@ -160,7 +144,7 @@ stdenv.mkDerivation (finalAttrs: {
- observe as spectators
'';
homepage = "https://www.openttd.org/";
changelog = "https://cdn.openttd.org/openttd-releases/${finalAttrs.version}/changelog.txt";
changelog = "https://cdn.openttd.org/openttd-releases/${finalAttrs.version}/changelog.md";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [