postgresqlPackages.h3-pg: 4.1.3 -> 4.1.4

This commit is contained in:
Wolfgang Walther 2024-11-15 20:51:22 +00:00
parent 0dbbc3c5f9
commit 53b1df6254
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -10,21 +10,24 @@
buildPostgresqlExtension (finalAttrs: { buildPostgresqlExtension (finalAttrs: {
pname = "h3-pg"; pname = "h3-pg";
version = "4.1.3"; version = "4.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zachasme"; owner = "zachasme";
repo = "h3-pg"; repo = "h3-pg";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-nkaDZ+JuMtsGUJVx70DD2coLrmc/T8/cNov7pfNF1Eg="; hash = "sha256-uZ4XI/VXRr636CI1r24D6ykPQqO5qZNxNQLUQKmoPtg=";
}; };
postPatch = '' postPatch = ''
substituteInPlace CMakeLists.txt \ 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 '' '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace cmake/AddPostgreSQLExtension.cmake \ 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 = [ nativeBuildInputs = [