-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fixes #293
Fixes #293
Conversation
inherit mkFormatterModule; | ||
}; | ||
|
||
/** |
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.
I've take the liberty to use the new, standard doc comment syntax, and the documentation conventions Nixpkgs uses.
programs/genemichaels.nix
Outdated
|
||
showOptionParent = opt: n: | ||
assert opt._type == "option"; | ||
lib.showOption (lib.take (lib.length opt.loc - 1) opt.loc); |
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 makes `default.nix` the "thin waist" entrypoint of the project, making `flake-module.nix` a mere "helper" that uses a function from `default.nix`. The new `submoduleWith` includes `mkFormatterModule` which was accidentally forgotten in an earlier commit.
Also fixes an evaluation error
Just as I was wondering how to interpret your comment about submoduleWith correctly, there's already a PR - Thank you! EDIT: tested the wrong commit, this one works fine :) |
submoduleWith
function to lib, to make the alternate entrypoint contract visible (it's different wrtpkgs
and return value - see doc)