Skip to content

Commit eaf8892

Browse files
committed
chore: handle ports per version in test
1 parent 90fb1af commit eaf8892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/ext/pg_graphql.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ buildPgrxExtension_0_12_9 rec {
2727
# Setting RUSTFLAGS in env to ensure it's available for all phases
2828
env = lib.optionalAttrs stdenv.isDarwin {
2929
POSTGRES_LIB = "${postgresql}/lib";
30-
PGPORT = "5434";
30+
PGPORT = if (lib.versions.major postgresql.version) == "17" then "5440" else "5439";
3131
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
3232
NIX_BUILD_CORES = "4"; # Limit parallel jobs
3333
CARGO_BUILD_JOBS = "4"; # Limit cargo parallelism

0 commit comments

Comments
 (0)