postgresqlPackages.h3-pg: 4.1.3 -> 4.1.4

(cherry picked from commit 53b1df6254)
This commit is contained in:
Wolfgang Walther 2024-11-15 20:51:22 +00:00 committed by github-actions[bot]
parent db0269e5c2
commit 54339a832f

View File

@ -10,21 +10,24 @@
buildPostgresqlExtension (finalAttrs: {
pname = "h3-pg";
version = "4.1.3";
version = "4.1.4";
src = fetchFromGitHub {
owner = "zachasme";
repo = "h3-pg";
rev = "v${finalAttrs.version}";
hash = "sha256-nkaDZ+JuMtsGUJVx70DD2coLrmc/T8/cNov7pfNF1Eg=";
hash = "sha256-uZ4XI/VXRr636CI1r24D6ykPQqO5qZNxNQLUQKmoPtg=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "add_subdirectory(cmake/h3)" "include_directories(${lib.getDev h3_4}/include/h3)"
--replace-fail "add_subdirectory(cmake/h3)" "include_directories(${lib.getDev h3_4}/include/h3)"
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace cmake/AddPostgreSQLExtension.cmake \
--replace "INTERPROCEDURAL_OPTIMIZATION TRUE" ""
--replace-fail "INTERPROCEDURAL_OPTIMIZATION TRUE" ""
# Commented upstream: https://github.com/zachasme/h3-pg/pull/141/files#r1844970927
substituteInPlace cmake/FindPostgreSQL.cmake \
--replace-fail 'list(APPEND PostgreSQL_INCLUDE_DIRS "/usr/local/include")' ""
'';
nativeBuildInputs = [