-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use flake-parts #40
Use flake-parts #40
Conversation
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.
@pedorich-n overall, your draft PR looks great; we appreciate you taking the time to work on it, and we look forward to seeing the final version of this PR.
I meant to write a comment, not to approve this PR because it is still a draft. My bad!
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.
@pedorich-n this PR looks great as is, and I would be happy to merge it; still I would like to hear your thoughts on my previous comment regarding how to handle unfree packages.
Hi!
I wanted to suggest you guys switch from
flake-utils
toflake-parts
, but I realized it might be better to make the first draft to showcase its strengths.Quick intro: flake-parts is a framework for writing flakes with an emphasis on modularity and customizability. It provides a lot of handy tools to simplify your code.
I've split the
flake.nix
intolib.nix
andpackages.nix
. Wherelib
exposes thebuildTerraform
function andpackages
builds all the packages.Flake output should stay the same:
packages
,devShells.default
,lib
, except I also addedoverlays
, so this PR closes #17.In my opinion, the separation makes the repository easier to follow and allows future changes to be done easily.
If you think it's worth merging, I'll update the documentation.
Let me know your thoughts!
Also: feel free to reject it, as this is completely my own initiative, and no one asked for this. 😄