From 9731ec419ef2bcae3b8aa3469309a05db448f2e1 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 10 Apr 2024 19:36:35 +0000 Subject: [PATCH] build(nix): use stable Rust in flake.nix devshell This way nightly clippy warnings are not generated when devshell is used. Nighly Rust is also not cached, e.g. rust-analyzer has to be rebuilt if version from fenix is used. --- flake.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 29ededb70b..cd259d0467 100644 --- a/flake.nix +++ b/flake.nix @@ -525,15 +525,12 @@ devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ - (fenixPkgs.complete.withComponents [ - "cargo" - "clippy" - "rust-src" - "rustc" - "rustfmt" - ]) + cargo + clippy + rustc + rustfmt + rust-analyzer cargo-deny - fenixPkgs.rust-analyzer perl # needed to build vendored OpenSSL ]; };