diff --git a/nix/general/devshell.nix b/nix/general/devshell.nix index d890ae0..cca136a 100644 --- a/nix/general/devshell.nix +++ b/nix/general/devshell.nix @@ -9,6 +9,12 @@ importingFlake: { devshells.standards = { name = lib.mkDefault "engineering-standards"; + # Include all packages from pre-commit in the shell + # - This allows easy access to the individual checks, if developers are interested in running them + # - `prek install` doesn't install the wrapped binary, so when executing the hooks, all runtimePkgs + # would be missing if they were not in the shell + packages = builtins.map (package: package.data) config.prek-pre-commit.package.runtimePkgs; + commands = [ { name = "prek";