-
Notifications
You must be signed in to change notification settings - Fork 39
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
Idiomatic way to provide a "library" of Nix functions #51
Comments
I don't think there's an idiomatic way yet, but we can think of a good opinionated way to do it. Some requirements:
Possible design: Defining and using public libs (
Defining a lib to be used in a
Defining a lib to be used locally
Does this seem like it would work for you? |
Defining a lib to be used in someone else's exported flake module is made a lot more challenging by #104 |
We are using the module system options to expose functions for other modules to use.
For example,
Then we use the
mkCheck
"library" function from other flake-module.nix modules (there are >10 of them, hence the library function) as:Is this the recommended way to use the module system to achieve this?
The text was updated successfully, but these errors were encountered: