Skip to content

Commit

Permalink
build(nix): use stable Rust in flake.nix devshell
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
link2xt committed Apr 11, 2024
1 parent e9cfcd9 commit 9731ec4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
};
Expand Down

0 comments on commit 9731ec4

Please sign in to comment.