From 98c762cee925b7b475943fed6380199c1b5d33ed Mon Sep 17 00:00:00 2001 From: Rasmus Rendal Date: Tue, 23 Jun 2026 18:53:09 +0200 Subject: [PATCH] feat: Include prek packages in default devshells This fixes the runtimePkgs required for running our checks not being available when the installed hook is executed, and provides an easier interface to the individual hooks. --- nix/general/devshell.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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";