Skip to content

Commit 099d58b

Browse files
committed
chore: on macos we need to set specific ports for the build
1 parent 7bdc16f commit 099d58b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

nix/ext/pg_graphql.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ buildPgrxExtension_0_11_3 rec {
1616
buildInputs = [ postgresql ];
1717

1818
CARGO="${cargo}/bin/cargo";
19+
#darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
1920
env = lib.optionalAttrs stdenv.isDarwin {
2021
POSTGRES_LIB = "${postgresql}/lib";
2122
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
23+
PGPORT = "5434";
2224
};
2325
cargoHash = "sha256-WkHufMw8OvinMRYd06ZJACnVvY9OLi069nCgq3LSmMY=";
2426

nix/ext/pg_jsonschema.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ buildPgrxExtension_0_11_3 rec {
1919

2020
previousVersions = ["0.3.0" "0.2.0" "0.1.4" "0.1.4" "0.1.2" "0.1.1" "0.1.0"];
2121
CARGO="${cargo}/bin/cargo";
22+
#darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
2223
env = lib.optionalAttrs stdenv.isDarwin {
2324
POSTGRES_LIB = "${postgresql}/lib";
2425
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
26+
PGPORT = "5433";
2527
};
2628
cargoHash = "sha256-VcS+efMDppofuFW2zNrhhsbC28By3lYekDFquHPta2g=";
2729

0 commit comments

Comments
 (0)