···2930{
31 lib,
32- cargo-pgrx,
33 pkg-config,
34 rustPlatform,
35 stdenv,
···64 buildFeatures ? [ ],
65 cargoBuildFlags ? [ ],
66 cargoPgrxFlags ? [ ],
0067 postgresql,
68 # cargo-pgrx calls rustfmt on generated bindings, this is not strictly necessary, so we avoid the
69 # dependency here. Set to false and provide rustfmt in nativeBuildInputs, if you need it, e.g.
···2930{
31 lib,
032 pkg-config,
33 rustPlatform,
34 stdenv,
···63 buildFeatures ? [ ],
64 cargoBuildFlags ? [ ],
65 cargoPgrxFlags ? [ ],
66+ # pinned dependencies
67+ cargo-pgrx,
68 postgresql,
69 # cargo-pgrx calls rustfmt on generated bindings, this is not strictly necessary, so we avoid the
70 # dependency here. Set to false and provide rustfmt in nativeBuildInputs, if you need it, e.g.
···7 postgresql,
8 util-linux,
9}:
10-let
11- buildPgrxExtension' = buildPgrxExtension.override {
12- # Upstream only works with a fixed minor version of cargo-pgrx for each release.
13- cargo-pgrx = cargo-pgrx_0_12_6;
14- };
15-in
16-buildPgrxExtension' (finalAttrs: {
17 inherit postgresql;
01819 pname = "pgx_ulid";
20 version = "0.2.0";
···12 stdenv,
13}:
14let
15- buildPgrxExtension' = buildPgrxExtension.override {
16- # Upstream only works with a fixed version of cargo-pgrx for each release,
17- # so we're pinning it here to avoid future incompatibility.
18- cargo-pgrx = cargo-pgrx_0_14_1;
19- };
20-21 # Follow upstream and use rust-jemalloc-sys on linux aarch64 and x86_64
22 # Additionally, disable init exec TLS, since it causes issues with postgres.
23 # https://github.com/tensorchord/VectorChord/blob/0.4.2/Cargo.toml#L43-L44
···29 })
30 );
31in
32-buildPgrxExtension' (finalAttrs: {
33 inherit postgresql;
03435 pname = "vectorchord";
36 version = "0.4.2";
···12 stdenv,
13}:
14let
00000015 # Follow upstream and use rust-jemalloc-sys on linux aarch64 and x86_64
16 # Additionally, disable init exec TLS, since it causes issues with postgres.
17 # https://github.com/tensorchord/VectorChord/blob/0.4.2/Cargo.toml#L43-L44
···23 })
24 );
25in
26+buildPgrxExtension (finalAttrs: {
27 inherit postgresql;
28+ cargo-pgrx = cargo-pgrx_0_14_1;
2930 pname = "vectorchord";
31 version = "0.4.2";