fix: use toolchain file

This commit is contained in:
Tobias Berger 2024-05-03 23:33:35 +02:00
parent ed51574014
commit 2c86f02932
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -37,9 +37,10 @@
let
pkgs = import nixpkgs { inherit system; };
fenix' = (import fenix { inherit system pkgs; });
toolchain = fenix'.complete.withComponents (
(builtins.fromTOML (builtins.readFile ./rust-toolchain.toml)).toolchain.components
);
toolchain = fenix'.fromToolchainFile {
file = ./rust-toolchain.toml;
sha256 = "sha256-opUgs6ckUQCyDxcB9Wy51pqhd0MPGHUVbwRKKPGiwZU=";
};
in
{
inherit pkgs toolchain;