1- { lib , stdenv , fetchFromGitHub , postgresql , buildPgrxExtension_0_12_6 , cargo , rust-bin } :
1+ { lib , stdenv , fetchFromGitHub , postgresql , buildPgrxExtension_0_12_9 , cargo , rust-bin } :
2+
23let
3- rustVersion = "1.80.0 " ;
4- cargo = rust-bin . stable . ${ rustVersion } . default ;
4+ rustVersion = "nightly " ;
5+ cargo = rust-bin . nightly . latest . default ;
56in
6- buildPgrxExtension_0_12_6 rec {
7+ buildPgrxExtension_0_12_9 rec {
78 pname = "pg_graphql" ;
8- version = "1.5.9 " ;
9+ version = "1.5.11 " ;
910 inherit postgresql ;
1011
1112 src = fetchFromGitHub {
1213 owner = "supabase" ;
1314 repo = pname ;
1415 rev = "v${ version } " ;
15- hash = "sha256-YpLN43FtLhp2cb7cyM+4gEx8GTwsRiKTfxaMq0b8hk0 =" ;
16+ hash = "sha256-BMZc9ui+2J3U24HzZZVCU5+KWhz+5qeUsRGeptiqbek =" ;
1617 } ;
1718
1819 nativeBuildInputs = [ cargo ] ;
1920 buildInputs = [ postgresql ] ;
2021
21- CARGO = "${ cargo } /bin/cargo" ;
22- #darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
22+ CARGO = "${ cargo } /bin/cargo" ;
23+
24+ cargoLock = {
25+ lockFile = "${ src } /Cargo.lock" ;
26+ } ;
27+ # Setting RUSTFLAGS in env to ensure it's available for all phases
2328 env = lib . optionalAttrs stdenv . isDarwin {
2429 POSTGRES_LIB = "${ postgresql } /lib" ;
25- RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup" ;
2630 PGPORT = "5434" ;
31+ RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup" ;
32+ NIX_BUILD_CORES = "4" ; # Limit parallel jobs
33+ CARGO_BUILD_JOBS = "4" ; # Limit cargo parallelism
2734 } ;
28- cargoHash = "sha256-d2RSHtJgbYlOvArjOTaeYoca01UyWPUEO5vhktxxB6U=" ;
35+ CARGO_BUILD_RUSTFLAGS = "--cfg tokio_unstable -C debuginfo=0" ;
36+ CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = true ;
2937
30- # FIXME (aseipp): disable the tests since they try to install .control
31- # files into the wrong spot, aside from that the one main test seems
32- # to work, though
38+
3339 doCheck = false ;
3440
3541 meta = with lib ; {
@@ -39,4 +45,4 @@ buildPgrxExtension_0_12_6 rec {
3945 platforms = postgresql . meta . platforms ;
4046 license = licenses . postgresql ;
4147 } ;
42- }
48+ }
0 commit comments