fix: use toolchain file
This commit is contained in:
parent
ed51574014
commit
2c86f02932
1 changed files with 4 additions and 3 deletions
|
@ -37,9 +37,10 @@
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
fenix' = (import fenix { inherit system pkgs; });
|
fenix' = (import fenix { inherit system pkgs; });
|
||||||
toolchain = fenix'.complete.withComponents (
|
toolchain = fenix'.fromToolchainFile {
|
||||||
(builtins.fromTOML (builtins.readFile ./rust-toolchain.toml)).toolchain.components
|
file = ./rust-toolchain.toml;
|
||||||
);
|
sha256 = "sha256-opUgs6ckUQCyDxcB9Wy51pqhd0MPGHUVbwRKKPGiwZU=";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit pkgs toolchain;
|
inherit pkgs toolchain;
|
||||||
|
|
Loading…
Reference in a new issue