refactor: move to nixpkgs 25.05
This commit is contained in:
@@ -87,7 +87,7 @@ let
|
||||
preBuildAndTest = ''
|
||||
export PGRX_HOME=$(mktemp -d)
|
||||
export PGDATA="$PGRX_HOME/data-${pgrxPostgresMajor}/"
|
||||
cargo-pgrx pgrx init "--pg${pgrxPostgresMajor}" ${lib.getDev postgresql}/bin/pg_config
|
||||
cargo-pgrx pgrx init "--pg${pgrxPostgresMajor}" ${postgresql.pg_config}/bin/pg_config
|
||||
echo "unix_socket_directories = '$(mktemp -d)'" > "$PGDATA/postgresql.conf"
|
||||
|
||||
# This is primarily for Mac or other Nix systems that don't use the nixbld user.
|
||||
@@ -121,7 +121,7 @@ let
|
||||
PGRX_BUILD_FLAGS="--frozen -j $NIX_BUILD_CORES ${builtins.concatStringsSep " " cargoBuildFlags}" \
|
||||
${lib.optionalString stdenv.hostPlatform.isDarwin ''RUSTFLAGS="''${RUSTFLAGS:+''${RUSTFLAGS} }-Clink-args=-Wl,-undefined,dynamic_lookup"''} \
|
||||
cargo pgrx package \
|
||||
--pg-config ${lib.getDev postgresql}/bin/pg_config \
|
||||
--pg-config ${postgresql.pg_config}/bin/pg_config \
|
||||
${maybeDebugFlag} \
|
||||
--features "${builtins.concatStringsSep " " buildFeatures}" \
|
||||
--out-dir "$out"
|
||||
|
||||
Reference in New Issue
Block a user