You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a few extra packages to the environment of a hook, and I've tried using extraPackages, but it only adds them to the nix develop shell, not the hook itself
$ nix flake check --print-build-logs pre-commit-run> Running: $ pre-commit run --all-filespre-commit-run> cspell...................................................................Failedpre-commit-run> - hook id: cspellpre-commit-run> - exit code: 1pre-commit-run> Executable `just` not found
it looks like the package is included within the dev shell
devShells.pre-commit=config.pre-commit.devShell;
$ which justwhich: no just in (/run/wrappers/bin:/home/mateidibu/.nix-profile/bin:/nix/profile/bin:/home/mateidibu/.local/state/nix/profile/bin:/etc/profiles/per-user/mateidibu/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)
$ nix develop .#pre-commit
$ which just/nix/store/ian74ppvb1z7ykc72l7lsxlfpz08b19v-just-1.36.0/bin/just
removing pkgs.just from pre-commit.settings.hooks.cspell.extraPackages removes it the dev shell as well, as expected
The text was updated successfully, but these errors were encountered:
I'm trying to add a few extra packages to the environment of a hook, and I've tried using
extraPackages
, but it only adds them to thenix develop
shell, not the hook itselfit looks like the package is included within the dev shell
removing
pkgs.just
frompre-commit.settings.hooks.cspell.extraPackages
removes it the dev shell as well, as expectedThe text was updated successfully, but these errors were encountered: