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
Add mkSimpleFlake
?
#25
Comments
In your example, you could still import at the A default value for
|
Agreed, I think that's a good idea. 👍🏿 |
Interesting project btw. It would be interesting to turn the template into a reusable module. That way you could achieve a new level of user-friendliness, if you capture the most common haskellPackages configuration and "tricks" in options. |
And unlike with a template, existing users will benefit from improvements. |
Done! https://github.com/srid/haskell-flake Perhaps worth creating a page listing all the |
Made a start with that in |
It'd make sense for |
This can be resolved by Nix not requiring the enumeration of supported systems Alternatively, or in addition, a |
In https://github.com/srid/haskell-template I'm using
flake-parts
in place offlake-utils
. The minimal code I came up with in order to replace the latter'seachDefaultSystem
is as follows:https://github.com/srid/haskell-template/blob/3fc6858830ecee3d2fe1dfe9a8bfa2047cf561ac/flake.nix#L14-L19
Since I imagine most non-monorepos using
flake-parts
to repeat the above verbatim, would it be worthwhile to expose a function that obviates bothsystems
andperSystem
? i.e.ie.,
mkSimpleFlake
is likemkFlake
but uses all systems built by Hydra, as well as assumes the user specifies a single-module flake.The text was updated successfully, but these errors were encountered: