From 578c3f18a71f3f09368bf380e6a2a6a3fec60b62 Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 10 May 2025 00:02:18 +0300 Subject: [PATCH] postgis: backport patch to fix tests with GDAL 3.11 --- pkgs/servers/sql/postgresql/ext/postgis.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix index 40eb1799aab4..2fde76e12fa1 100644 --- a/pkgs/servers/sql/postgresql/ext/postgis.nix +++ b/pkgs/servers/sql/postgresql/ext/postgis.nix @@ -4,7 +4,7 @@ cunit, docbook5, fetchFromGitHub, - file, + fetchpatch, gdalMinimal, geos, jitSupport, @@ -50,6 +50,15 @@ postgresqlBuildExtension (finalAttrs: { hash = "sha256-1kOLtG6AMavbWQ1lHG2ABuvIcyTYhgcbjuVmqMR4X+g="; }; + patches = [ + # Backport patch for compatibility with GDAL 3.11 + # FIXME: remove in next update + (fetchpatch { + url = "https://git.osgeo.org/gitea/postgis/postgis/commit/614eca7c169cd6e9819801d3ea99d5258262c58b.patch"; + hash = "sha256-VkNZFANAt8Jv+ExCusGvi+ZWB7XLcAheefSx7akA7Go="; + }) + ]; + buildInputs = [ geos