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
This commit is contained in:
parent
0dbbc3c5f9
commit
53b1df6254
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user