From 4afe235a3c4d94997e6155626ae16770cb7fd168 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Fri, 8 Dec 2023 15:51:41 +0000 Subject: [PATCH] nix: simplify devShell and envrc There is no need for the ';' in the `.envrc` file. Do not run checks in devShell so that it's possible to enter the shell while code is being edited and is not compiling. Also include `cargo-nextest` so that one can test in the shell. Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- .envrc | 2 +- flake.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.envrc b/.envrc index 44610e56..3550a30f 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -use flake; +use flake diff --git a/flake.nix b/flake.nix index e930c2fe..3a7b99d8 100644 --- a/flake.nix +++ b/flake.nix @@ -213,12 +213,10 @@ }; devShells.default = craneLib.devShell { - # Inherit inputs from checks. - checks = self.checks.${system}; - # Extra inputs can be added here; cargo and rustc are provided by default. packages = [ pkgs.cargo-watch + pkgs.cargo-nextest pkgs.ripgrep pkgs.rust-analyzer ];