Skip to content

Commit 78ac5a0

Browse files
samrosedarora
authored andcommitted
fix: fixes build on aarch64-darwin
1 parent 3d2621b commit 78ac5a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nix/ext/pg_graphql.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ buildPgrxExtension_0_11_3 rec {
1313
};
1414

1515
nativeBuildInputs = [ cargo ];
16+
buildInputs = [ postgresql ];
1617

1718
CARGO="${cargo}/bin/cargo";
18-
19+
env = lib.optionalAttrs stdenv.isDarwin {
20+
POSTGRES_LIB = "${postgresql}/lib";
21+
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
22+
};
1923
cargoHash = "sha256-yc0lO4BZdbArBujRynl/ItkLLAiVZ2Wf3S7voQ2x6xM=";
2024

2125
# FIXME (aseipp): disable the tests since they try to install .control
@@ -30,4 +34,4 @@ buildPgrxExtension_0_11_3 rec {
3034
platforms = postgresql.meta.platforms;
3135
license = licenses.postgresql;
3236
};
33-
}
37+
}

0 commit comments

Comments
 (0)