From 63ccbd7cddcbd80d1c7e819dc42db15f7692ea71 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Wed, 4 Aug 2021 00:02:58 -0700 Subject: Add .envrc and fix devShell to work with more tools --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 40f0724..03f4a25 100644 --- a/flake.nix +++ b/flake.nix @@ -143,7 +143,17 @@ devShell = pkgs.mkShell { inputsFrom = [ self.packages.${system}.deploy-rs ]; - buildInputs = [ pkgs.nixUnstable pkgs.rust-analyzer pkgs.rustfmt ]; + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + buildInputs = with pkgs; [ + nixUnstable + cargo + rustc + rust-analyzer + rustfmt + clippy + reuse + rust.packages.stable.rustPlatform.rustLibSrc + ]; }; checks = { -- cgit v1.2.3