Skip to content
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

Merged
merged 6 commits into from
Feb 22, 2024
Merged

Use flake-parts #40

merged 6 commits into from
Feb 22, 2024

Conversation

pedorich-n
Copy link
Contributor

@pedorich-n pedorich-n commented Feb 13, 2024

Hi!
I wanted to suggest you guys switch from flake-utils to flake-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 into lib.nix and packages.nix. Where lib exposes the buildTerraform function and packages builds all the packages.

Flake output should stay the same: packages, devShells.default, lib, except I also added overlays, 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. 😄

sestrella
sestrella previously approved these changes Feb 16, 2024
Copy link
Member

@sestrella sestrella left a 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.

@sestrella sestrella dismissed their stale review February 17, 2024 01:30

I meant to write a comment, not to approve this PR because it is still a draft. My bad!

@pedorich-n pedorich-n marked this pull request as ready for review February 17, 2024 06:07
Copy link
Member

@sestrella sestrella left a 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.

@sestrella sestrella merged commit 7ad485c into stackbuilders:main Feb 22, 2024
1 of 2 checks passed
@pedorich-n pedorich-n deleted the flake-parts branch February 22, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default overlay
2 participants