From 2f35d9a013c33118d71a9d99c6f992c6d123c3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kl=C3=A4hn?= Date: Fri, 10 May 2024 18:10:01 +0200 Subject: [PATCH] use rust-analyzer nightly --- flake.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 64cf33ace..a438ece7c 100644 --- a/flake.nix +++ b/flake.nix @@ -525,14 +525,23 @@ }; }; - devShells.default = pkgs.mkShell { + devShells.default = let + pkgs = import nixpkgs { + system = system; + overlays = [ fenix.overlays.default ]; + }; + in pkgs.mkShell { + buildInputs = with pkgs; [ - cargo - clippy - rustc - rustfmt - rust-analyzer + (fenix.packages.${system}.complete.withComponents [ + "cargo" + "clippy" + "rust-src" + "rustc" + "rustfmt" + ]) cargo-deny + rust-analyzer-nightly perl # needed to build vendored OpenSSL git-cliff ];