Skip to content

Commit d7902e5

Browse files
burmeciasamrose
andauthored
chore: bump wrappers to v0.4.3 (#1286)
* chore: bump wrappers to v0.4.3 * fix: pkg changes for wrappers using cargo-pgrx 0.12.6 (#1288) * fix: pkg changes for wrappers using cargo-pgrx 0.12.6 * chore: cleanup --------- Co-authored-by: Sam Rose <samuel@supabase.io> --------- Co-authored-by: samrose <samuel.rose@gmail.com> Co-authored-by: Sam Rose <samuel@supabase.io>
1 parent 743c6f7 commit d7902e5

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

ansible/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ groonga_release_checksum: sha256:1c2d1a6981c1ad3f02a11aff202b15ba30cb1c6147f1fa9
141141
pgroonga_release: "3.0.7"
142142
pgroonga_release_checksum: sha256:885ff3878cc30e9030e5fc56d561bc8b66df3ede1562c9d802bc0ea04fe5c203
143143

144-
wrappers_release: "0.4.2"
144+
wrappers_release: "0.4.3"
145145

146146
hypopg_release: "1.4.1"
147147
hypopg_release_checksum: sha256:9afe6357fd389d8d33fad81703038ce520b09275ec00153c6c89282bcdedd6bc

nix/ext/wrappers/default.nix

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,56 @@
44
, openssl
55
, pkg-config
66
, postgresql
7-
, buildPgrxExtension_0_11_3
7+
, buildPgrxExtension_0_12_6
88
, cargo
99
, darwin
1010
, jq
1111
, rust-bin
1212
}:
1313
let
14-
rustVersion = "1.76.0";
14+
rustVersion = "1.80.0";
1515
cargo = rust-bin.stable.${rustVersion}.default;
1616
in
17-
buildPgrxExtension_0_11_3 rec {
17+
buildPgrxExtension_0_12_6 rec {
1818
pname = "supabase-wrappers";
19-
version = "0.4.2";
19+
version = "0.4.3";
2020
# update the following array when the wrappers version is updated
2121
# required to ensure that extensions update scripts from previous versions are generated
22-
previousVersions = ["0.4.1" "0.4.0" "0.3.1" "0.3.0" "0.2.0" "0.1.19" "0.1.18" "0.1.17" "0.1.16" "0.1.15" "0.1.14" "0.1.12" "0.1.11" "0.1.10" "0.1.9" "0.1.8" "0.1.7" "0.1.6" "0.1.5" "0.1.4" "0.1.1" "0.1.0"];
22+
previousVersions = ["0.4.2" "0.4.1" "0.4.0" "0.3.1" "0.3.0" "0.2.0" "0.1.19" "0.1.18" "0.1.17" "0.1.16" "0.1.15" "0.1.14" "0.1.12" "0.1.11" "0.1.10" "0.1.9" "0.1.8" "0.1.7" "0.1.6" "0.1.5" "0.1.4" "0.1.1" "0.1.0"];
2323
inherit postgresql;
2424
src = fetchFromGitHub {
2525
owner = "supabase";
2626
repo = "wrappers";
2727
rev = "v${version}";
28-
hash = "sha256-ut3IQED6ANXgabiHoEUdfSrwkuuYYSpRoeWdtBvSe64=";
28+
hash = "sha256-CkoNMoh40zbQL4V49ZNYgv3JjoNWjODtTpHn+L8DdZA=";
2929
};
30+
3031
nativeBuildInputs = [ pkg-config cargo ];
31-
buildInputs = [ openssl ] ++ lib.optionals (stdenv.isDarwin) [
32+
buildInputs = [ openssl postgresql ] ++ lib.optionals (stdenv.isDarwin) [
3233
darwin.apple_sdk.frameworks.CoreFoundation
3334
darwin.apple_sdk.frameworks.Security
3435
darwin.apple_sdk.frameworks.SystemConfiguration
3536
];
37+
38+
NIX_LDFLAGS = "-L${postgresql}/lib -lpq";
39+
40+
# Set necessary environment variables for pgrx
41+
env = lib.optionalAttrs stdenv.isDarwin {
42+
POSTGRES_LIB = "${postgresql}/lib";
43+
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
44+
PGPORT = "5435";
45+
};
46+
3647
OPENSSL_NO_VENDOR = 1;
3748
#need to set this to 2 to avoid cpu starvation
3849
CARGO_BUILD_JOBS = "2";
3950
CARGO="${cargo}/bin/cargo";
51+
4052
cargoLock = {
4153
lockFile = "${src}/Cargo.lock";
42-
outputHashes = {
43-
"clickhouse-rs-1.0.0-alpha.1" = "sha256-0zmoUo/GLyCKDLkpBsnLAyGs1xz6cubJhn+eVqMEMaw=";
44-
};
54+
allowBuiltinFetchGit = true;
4555
};
46-
postPatch = "cp ${cargoLock.lockFile} Cargo.lock";
56+
4757
buildAndTestSubdir = "wrappers";
4858
buildFeatures = [
4959
"helloworld_fdw"

0 commit comments

Comments
 (0)