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 <Fintan Halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny 2023-12-08 15:51:41 +00:00 committed by cloudhead
parent 76c969c755
commit 4afe235a3c
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

2
.envrc
View File

@ -1 +1 @@
use flake; use flake

View File

@ -213,12 +213,10 @@
}; };
devShells.default = craneLib.devShell { 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. # Extra inputs can be added here; cargo and rustc are provided by default.
packages = [ packages = [
pkgs.cargo-watch pkgs.cargo-watch
pkgs.cargo-nextest
pkgs.ripgrep pkgs.ripgrep
pkgs.rust-analyzer pkgs.rust-analyzer
]; ];