supabase-postgres.git / summary / log / commit / refs

commit    3d2621b2b0eafc26ff33a45b766bf997c27f35da
Author:   Sam Rose <samuel@supabase.io>
Commit:   Div Arora <darora@users.noreply.github.com>
Date:     Sun Jul 14 13:17:24 2024 +0000

    fix: fixes build on aarch64-darwin


nix/ext/pg_jsonschema.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nix/ext/pg_jsonschema.nix b/nix/ext/pg_jsonschema.nix index e5a03f46..7bc737d1 100644 --- a/nix/ext/pg_jsonschema.nix +++ b/nix/ext/pg_jsonschema.nix @@ -13,10 +13,13 @@ buildPgrxExtension_0_11_3 rec { }; nativeBuildInputs = [ cargo ]; + buildInputs = [ postgresql ]; CARGO="${cargo}/bin/cargo"; - - + env = lib.optionalAttrs stdenv.isDarwin { + POSTGRES_LIB = "${postgresql}/lib"; + RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup"; + }; cargoHash = "sha256-VcS+efMDppofuFW2zNrhhsbC28By3lYekDFquHPta2g="; # FIXME (aseipp): testsuite tries to write files into /nix/store; we'll have @@ -30,4 +33,4 @@ buildPgrxExtension_0_11_3 rec { platforms = postgresql.meta.platforms; license = licenses.postgresql; }; -} +} \ No newline at end of file [parent: fe5a4c5d8548]