Skip to content

Commit 0bd4bb5

Browse files
samrosedarora
authored andcommitted
chore: bump pg_jsonschema version to support pg 17
1 parent b25826a commit 0bd4bb5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

nix/ext/pg_jsonschema.nix

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo, rust-bin }:
1+
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_12_6, cargo, rust-bin }:
22
let
3-
rustVersion = "1.76.0";
3+
rustVersion = "1.80.0";
44
cargo = rust-bin.stable.${rustVersion}.default;
55
in
6-
buildPgrxExtension_0_11_3 rec {
6+
buildPgrxExtension_0_12_6 rec {
77
pname = "pg_jsonschema";
8-
version = "0.3.1";
8+
version = "0.3.3";
99
inherit postgresql;
1010

1111
src = fetchFromGitHub {
1212
owner = "supabase";
1313
repo = pname;
1414
rev = "v${version}";
15-
hash = "sha256-YdKpOEiDIz60xE7C+EzpYjBcH0HabnDbtZl23CYls6g=";
15+
hash = "sha256-Au1mqatoFKVq9EzJrpu1FVq5a1kBb510sfC980mDlsU=";
1616
};
1717

1818
nativeBuildInputs = [ cargo ];
1919
buildInputs = [ postgresql ];
2020
# update the following array when the pg_jsonschema version is updated
2121
# required to ensure that extensions update scripts from previous versions are generated
2222

23-
previousVersions = ["0.3.0" "0.2.0" "0.1.4" "0.1.4" "0.1.2" "0.1.1" "0.1.0"];
23+
previousVersions = ["0.3.1" "0.3.0" "0.2.0" "0.1.4" "0.1.4" "0.1.2" "0.1.1" "0.1.0"];
2424
CARGO="${cargo}/bin/cargo";
2525
#darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
2626
env = lib.optionalAttrs stdenv.isDarwin {
2727
POSTGRES_LIB = "${postgresql}/lib";
2828
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
2929
PGPORT = "5433";
3030
};
31-
cargoHash = "sha256-VcS+efMDppofuFW2zNrhhsbC28By3lYekDFquHPta2g=";
3231

32+
cargoLock = {
33+
lockFile = "${src}/Cargo.lock";
34+
allowBuiltinFetchGit = false;
35+
};
36+
3337
# FIXME (aseipp): testsuite tries to write files into /nix/store; we'll have
3438
# to fix this a bit later.
3539
doCheck = false;

0 commit comments

Comments
 (0)