Skip to content

Commit 18ff7b0

Browse files
committed
feat: override rust versions in buildPgrxExtension
1 parent adad4a6 commit 18ff7b0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

nix/ext/pg_graphql.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo }:
2-
1+
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo, rust-bin }:
2+
let
3+
rustVersion = "1.76.0";
4+
cargo = rust-bin.stable.${rustVersion}.default;
5+
in
36
buildPgrxExtension_0_11_3 rec {
47
pname = "pg_graphql";
58
version = "1.5.7";

nix/ext/pg_jsonschema.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo }:
2-
1+
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_11_3, cargo, rust-bin }:
2+
let
3+
rustVersion = "1.76.0";
4+
cargo = rust-bin.stable.${rustVersion}.default;
5+
in
36
buildPgrxExtension_0_11_3 rec {
47
pname = "pg_jsonschema";
58
version = "0.3.1";

0 commit comments

Comments
 (0)