I'm adding a flake and pre-commit CI to a C/C++ project. nix flake check is working to run the hooks, but I can't figure out how to get an interactive shell to run them with the full tabular reporting. I see perSystem.pre-commit.devShell, but it doesn't seem to be exposed to the flake, and when I try something like
edrex@chip ~/s/g/a/way-displays (flake) [1]> nix run .#devShells.x86_64-linux.pre-commit
error: unable to execute '/nix/store/3ll7imw5xnr43gdzz7csxybzmjkni5pf-nix-shell/bin/nix-shell': Not a directory
For now I will just copy the body of that expression as a starting point.
I'm adding a flake and pre-commit CI to a C/C++ project.
nix flake check
is working to run the hooks, but I can't figure out how to get an interactive shell to run them with the full tabular reporting. I see perSystem.pre-commit.devShell, but it doesn't seem to be exposed to the flake, and when I try something likein perSystem, I get
For now I will just copy the body of that expression as a starting point.