Skip to content

Conversation

@srid
Copy link
Owner

@srid srid commented Oct 17, 2025

@srid srid marked this pull request as ready for review October 17, 2025 14:54
@srid
Copy link
Owner Author

srid commented Oct 17, 2025

@roberth

In case if this interests you (as an user report):

I tried using flake-parts partitions to prune out dev-related inputs from top-level flake.nix so that nix run doesn't have to pull in and evaluate the unnecessary stuff. For that purpose alone, partitions work well.

But then, I tried adding Emanote docs (example) which adds a packages.site (static site). I can't actually expose this package to top-level flake (dev partition exports only devShells and checks); nor is there a way to actually access it for the CLI. This sounds like a design trade-off per hercules-ci/flake-parts#258

So, I will close this PR, and go back to the subflake approach (where things are fully decoupled and hooked up via --override-input) viz.: https://github.com/srid/haskell-flake/blob/3ab2a076aba01d932644f6f21e8aa507d28bb36b/.envrc#L2

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.

2 participants