Skip to content

Commit

Permalink
fix(rust-crane): override cargo in config.deps with our toolchain so …
Browse files Browse the repository at this point in the history
…that rust-cargo-vendor uses it too
  • Loading branch information
yusdacra committed Nov 12, 2024
1 parent 87bc465 commit f4dc2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/dream2nix/rust-cargo-vendor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ in {
l.mapAttrs (_: l.mkOverride 998) {
inherit
(nixpkgs)
cargo
jq
moreutils
python3Packages
Expand Down
4 changes: 4 additions & 0 deletions modules/dream2nix/rust-crane/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ in {

deps = {nixpkgs, ...}:
l.mkMerge [
{
# override cargo package to be the rust toolchain so that rust-cargo-vendor uses the custom provided toolchain if any
cargo = l.mkOverride 1001 rustToolchain;
}
(l.mapAttrs (_: l.mkDefault) {
craneSource = config.deps.fetchFromGitHub {
owner = "ipetkov";
Expand Down

0 comments on commit f4dc2db

Please sign in to comment.