flake.nix: use rust-analyzer from fenix

This commit is contained in:
Andrey Golovizin 2022-09-24 13:24:00 +02:00
parent 0ea0000ad0
commit e97f4a0ce2

View file

@ -19,10 +19,11 @@
pkgs = import nixpkgs {
inherit system;
};
rustToolchain = fenix.packages."${system}".stable.defaultToolchain;
rust-toolchain = fenix.packages."${system}".stable.defaultToolchain;
rust-analyzer = fenix.packages."${system}".stable.rust-analyzer;
naersk-lib = naersk.lib.${system}.override {
cargo = rustToolchain;
rustc = rustToolchain;
cargo = rust-toolchain;
rustc = rust-toolchain;
};
in
rec {
@ -38,8 +39,8 @@
devShells.default = pkgs.mkShell {
name = "azirevpn-env";
buildInputs = [
rustToolchain
pkgs.rust-analyzer
rust-analyzer
rust-toolchain
];
};
}