-
Notifications
You must be signed in to change notification settings - Fork 174
Option for hookModule
#422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
config._module.args.default_stages = cfg.default_stages; | ||
}; | ||
config._module.args.hookModule = config.hookModule; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This chunk could be moved out to a separate file if you like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oooooh! So _module.args
are way more powerful than I initially thought. Great stuff!
You can't use it for imports in the same fixpoint (here: the root, or initial |
Looks like this commit broke something for me:
Relevant part of the flake looks something like this: devShells.default = pkgs.mkShellNoCC { inherit (self.checks.${system}.preCommit) shellHook; };
checks.preCommit = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
};
}; P.S. The previous commit on the master branch works fine. |
@azahi, fixed |
Thanks for the fast fix 🥇 Works fine again on
|
This removes a bit of duplication, and allows
hookModule
to be monkey patched.