fix: use correct toolchain packages for rust_set-rust-toolchain example

This commit is contained in:
Yusuf Bera Ertan 2022-12-18 03:03:16 +03:00
parent 4ed4a2958a
commit 1cbc3aac3e
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,10 @@
packageOverrides = {
# override all packages and set a toolchain
"^.*" = {
set-toolchain.overrideRustToolchain = old: {cargo = toolchain;};
set-toolchain.overrideRustToolchain = old: {
cargo = toolchain;
rustc = toolchain;
};
check-toolchain-version.overrideAttrs = old: {
buildPhase = ''
currentCargoVersion="$(cargo --version)"

View File

@ -7,6 +7,7 @@ name = "linemd"
relPath = ""
subsystem = "rust"
translator = "cargo-lock"
builder = "build-rust-package"
[[linemd.subsystemInfo.crates]]
name = "linemd"