flake.nix: use rust-analyzer from fenix
This commit is contained in:
parent
0ea0000ad0
commit
e97f4a0ce2
1 changed files with 6 additions and 5 deletions
11
flake.nix
11
flake.nix
|
|
@ -19,10 +19,11 @@
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
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 {
|
naersk-lib = naersk.lib.${system}.override {
|
||||||
cargo = rustToolchain;
|
cargo = rust-toolchain;
|
||||||
rustc = rustToolchain;
|
rustc = rust-toolchain;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
|
@ -38,8 +39,8 @@
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "azirevpn-env";
|
name = "azirevpn-env";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
rustToolchain
|
rust-analyzer
|
||||||
pkgs.rust-analyzer
|
rust-toolchain
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue