Skip to content

Commit 2dd9bf3

Browse files
committed
Refactoring and build pg_graphql 1.0.2 using pgx 0.6.1
1 parent c4ff5de commit 2dd9bf3

File tree

5 files changed

+3968
-16
lines changed

5 files changed

+3968
-16
lines changed

nix/cargo-pgrx/buildPgrxExtension.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
buildFeatures ? [ ],
5555
cargoBuildFlags ? [ ],
5656
postgresql,
57+
# enable override to generate bindings using bindgenHook.
58+
# Some older versions of cargo-pgrx use a bindgenHook that is not compatible with the
59+
# current clang version present in stdenv
60+
bindgenHook ? rustPlatform.bindgenHook,
5761
# cargo-pgrx calls rustfmt on generated bindings, this is not strictly necessary, so we avoid the
5862
# dependency here. Set to false and provide rustfmt in nativeBuildInputs, if you need it, e.g.
5963
# if you include the generated code in the output via postInstall.
@@ -130,6 +134,7 @@ let
130134
cargo-pgrx
131135
postgresql
132136
pkg-config
137+
bindgenHook
133138
]
134139
++ lib.optionals useFakeRustfmt [ fakeRustfmt ];
135140

0 commit comments

Comments
 (0)