Skip to content

Commit c7da458

Browse files
committed
Nix: update rust versions
1 parent 3ebcd8b commit c7da458

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

nix/rust.nix

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ let
88
# override stdenv.targetPlatform here, if neccesary
99
};
1010
toolchainHashes = {
11-
"1.67.0" = "sha256-riZUc+R9V35c/9e8KJUE+8pzpXyl0lRXt3ZkKlxoY0g=";
12-
"nightly-2023-02-05" =
13-
"sha256-MM8fdvveBEWzpwjH7u6C0F7qSWGPIMpfZWLgVxSqtxY=";
14-
# copy this line with the correct toolchain name
11+
"1.71" = "sha256-R0F0Risbr74xg9mEYydyebx/z0Wu6HI0/KWwrV30vZo=";
12+
"1.72" = "sha256-dxE7lmCFWlq0nl/wKcmYvpP9zqQbBitAQgZ1zx9Ooik=";
13+
"nightly-2023-08-24" = "sha256-nfYc8EgbYl75yIIHmEEmpux4ZpwaIyuC+g6Hf4y1Hyk=";
14+
15+
# copy the placeholder line with the correct toolchain name when adding a new toolchain
16+
# That is,
17+
# 1. Put the correct version name;
18+
#
19+
# 2. Put the hash you get in line "got" from the error you obtain, which looks like
20+
# error: hash mismatch in fixed-output derivation '/nix/store/XXXXX'
21+
# specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
22+
# got: sha256-Q9UgzzvxLi4x9aWUJTn+/5EXekC98ODRU1TwhUs9RnY=
1523
"placeholder" = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
1624
};
1725
# rust-toolchain.toml -> { rustc, cargo, rust-analyzer, ... }
@@ -200,4 +208,3 @@ in
200208
cargoLock.lockFile = ../src/app/trace-tool/Cargo.lock;
201209
};
202210
}
203-

0 commit comments

Comments
 (0)