File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ buildPgrxExtension_0_12_9 rec {
27
27
# Setting RUSTFLAGS in env to ensure it's available for all phases
28
28
env = lib . optionalAttrs stdenv . isDarwin {
29
29
POSTGRES_LIB = "${ postgresql } /lib" ;
30
- PGPORT = if ( lib . versions . major postgresql . version ) == "17" then "5440" else "5439" ;
30
+ PGPORT = toString ( 5430 +
31
+ ( if builtins . match ".*_.*" postgresql . version != null then 1 else 0 ) + # +1 for OrioleDB
32
+ ( ( builtins . fromJSON ( builtins . substring 0 2 postgresql . version ) ) - 15 ) * 2 ) ; # +2 for each major version
31
33
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup" ;
32
34
NIX_BUILD_CORES = "4" ; # Limit parallel jobs
33
35
CARGO_BUILD_JOBS = "4" ; # Limit cargo parallelism
Original file line number Diff line number Diff line change 12
12
, git
13
13
} :
14
14
let
15
- rustVersion = "1.81 .0" ;
15
+ rustVersion = "1.84 .0" ;
16
16
cargo = rust-bin . stable . ${ rustVersion } . default ;
17
17
in
18
18
buildPgrxExtension_0_12_9 rec {
@@ -50,7 +50,7 @@ buildPgrxExtension_0_12_9 rec {
50
50
# - PostgreSQL 15.8 → 5435 + 0 + (15-15)*2 = 5435
51
51
# - PostgreSQL 17_0 (OrioleDB) → 5435 + 1 + (17-15)*2 = 5440
52
52
# - PostgreSQL 17.4 → 5435 + 0 + (17-15)*2 = 5439
53
- PGPORT = toString ( 5435 +
53
+ PGPORT = toString ( 5534 +
54
54
( if builtins . match ".*_.*" postgresql . version != null then 1 else 0 ) + # +1 for OrioleDB
55
55
( ( builtins . fromJSON ( builtins . substring 0 2 postgresql . version ) ) - 15 ) * 2 ) ; # +2 for each major version
56
56
} ;
You can’t perform that action at this time.
0 commit comments