mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
postgresqlPackages.h3-pg: 4.1.3 -> 4.1.4
(cherry picked from commit 53b1df6254
)
This commit is contained in:
parent
db0269e5c2
commit
54339a832f
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user