|
1 |
| -{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo, rust-bin }: |
| 1 | +{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_12_6, cargo, rust-bin }: |
2 | 2 | let
|
3 |
| - rustVersion = "1.76.0"; |
| 3 | + rustVersion = "1.80.0"; |
4 | 4 | cargo = rust-bin.stable.${rustVersion}.default;
|
5 | 5 | in
|
6 |
| -buildPgrxExtension_0_11_3 rec { |
| 6 | +buildPgrxExtension_0_12_6 rec { |
7 | 7 | pname = "pg_jsonschema";
|
8 |
| - version = "0.3.1"; |
| 8 | + version = "0.3.3"; |
9 | 9 | inherit postgresql;
|
10 | 10 |
|
11 | 11 | src = fetchFromGitHub {
|
12 | 12 | owner = "supabase";
|
13 | 13 | repo = pname;
|
14 | 14 | rev = "v${version}";
|
15 |
| - hash = "sha256-YdKpOEiDIz60xE7C+EzpYjBcH0HabnDbtZl23CYls6g="; |
| 15 | + hash = "sha256-Au1mqatoFKVq9EzJrpu1FVq5a1kBb510sfC980mDlsU="; |
16 | 16 | };
|
17 | 17 |
|
18 | 18 | nativeBuildInputs = [ cargo ];
|
19 | 19 | buildInputs = [ postgresql ];
|
20 | 20 | # update the following array when the pg_jsonschema version is updated
|
21 | 21 | # required to ensure that extensions update scripts from previous versions are generated
|
22 | 22 |
|
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"]; |
24 | 24 | CARGO="${cargo}/bin/cargo";
|
25 | 25 | #darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
|
26 | 26 | env = lib.optionalAttrs stdenv.isDarwin {
|
27 | 27 | POSTGRES_LIB = "${postgresql}/lib";
|
28 | 28 | RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
|
29 | 29 | PGPORT = "5433";
|
30 | 30 | };
|
31 |
| - cargoHash = "sha256-VcS+efMDppofuFW2zNrhhsbC28By3lYekDFquHPta2g="; |
32 | 31 |
|
| 32 | + cargoLock = { |
| 33 | + lockFile = "${src}/Cargo.lock"; |
| 34 | + allowBuiltinFetchGit = false; |
| 35 | + }; |
| 36 | + |
33 | 37 | # FIXME (aseipp): testsuite tries to write files into /nix/store; we'll have
|
34 | 38 | # to fix this a bit later.
|
35 | 39 | doCheck = false;
|
|
0 commit comments