git-hooks.nix
git-hooks.nix copied to clipboard
Is there a way to get the packages used by hooks as nix devshell inputs?
Basically what I want to do is define the pre-commit-hooks with this project and then want to add them to my devshells buildInputs. Is there a way to do that, that isn't writing them double?
This seems like a good candidate for #196
With #196 implemented, is this now possible or is there something else that needs to be done to get access to the packages used in pre-commit-hooks?
Wow, that was fast! Thanks for taking a look!
The new flake.nix example in the README currently fails with error: attribute 'enabledPackages' missing when I paste it into an empty directory and run nix develop.
The default.nix + shell.nix examples fail with error: undefined variable 'pkgs'.
Can you try again with the flakes?
Works now. Thank you so much!
ohh was wondering why was enabledPackages missing too.. I just had to update the flake :)