Skip to content

Commit

Permalink
Nix: update rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonichon authored and dannywillems committed Oct 3, 2023
1 parent ad24cb3 commit bf5308c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions nix/rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ let
# override stdenv.targetPlatform here, if neccesary
};
toolchainHashes = {
"1.67.0" = "sha256-riZUc+R9V35c/9e8KJUE+8pzpXyl0lRXt3ZkKlxoY0g=";
"nightly-2023-02-05" =
"sha256-MM8fdvveBEWzpwjH7u6C0F7qSWGPIMpfZWLgVxSqtxY=";
# copy this line with the correct toolchain name
"1.71" = "sha256-R0F0Risbr74xg9mEYydyebx/z0Wu6HI0/KWwrV30vZo=";
"1.72" = "sha256-dxE7lmCFWlq0nl/wKcmYvpP9zqQbBitAQgZ1zx9Ooik=";
"nightly-2023-08-24" = "sha256-nfYc8EgbYl75yIIHmEEmpux4ZpwaIyuC+g6Hf4y1Hyk=";

# copy the placeholder line with the correct toolchain name when adding a new toolchain
# That is,
# 1. Put the correct version name;
#
# 2. Put the hash you get in line "got" from the error you obtain, which looks like
# error: hash mismatch in fixed-output derivation '/nix/store/XXXXX'
# specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
# got: sha256-Q9UgzzvxLi4x9aWUJTn+/5EXekC98ODRU1TwhUs9RnY=
"placeholder" = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
# rust-toolchain.toml -> { rustc, cargo, rust-analyzer, ... }
Expand Down Expand Up @@ -200,4 +208,3 @@ in
cargoLock.lockFile = ../src/app/trace-tool/Cargo.lock;
};
}

0 comments on commit bf5308c

Please sign in to comment.