Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nix/general/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down