Skip to content

Commit

Permalink
fixup! Nix: update rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonichon committed Sep 27, 2023
1 parent 9ff7735 commit 49ca2ac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions nix/rust.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ let
# override stdenv.targetPlatform here, if neccesary
};
toolchainHashes = {
"1.71.0" = "sha256-ks0nMEGGXKrHnfv4Fku+vhQ7gx76ruv6Ij4fKZR3l78=";
"1.72.0" = "sha256-Q9UgzzvxLi4x9aWUJTn+/5EXekC98ODRU1TwhUs9RnY=";
"1.71" = "sha256-R0F0Risbr74xg9mEYydyebx/z0Wu6HI0/KWwrV30vZo=";
"1.72" = "sha256-dxE7lmCFWlq0nl/wKcmYvpP9zqQbBitAQgZ1zx9Ooik=";
# copy the placeholder line with the correct toolchain name when adding a new toolchain
# That is,
# 1. Put the correct verions name;
# 1. Put the correct version name;
#
# 2. Put anything, say "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= as the hash.
# You'll get an error:
# 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=
#
# 3. Now put put the hash from got instead of the one you specified in 2.
"placeholder" = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
# rust-toolchain.toml -> { rustc, cargo, rust-analyzer, ... }
Expand Down

0 comments on commit 49ca2ac

Please sign in to comment.