Repository navigation
Describe dependencies and the closure lib - #92
Merged
Merged
Conversation
A flake passes its pinned trees to mkLib as `dependencies`, and a registered file reads them as `closure-lib.caisson.dependencies`. The concept page is now "Closed-over Dependencies" (concepts/closed-over-dependencies.md) and the deep dive is "How dependencies are closed over" (deep-dives/how-dependencies-are-closed-over.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 1, 2026
Merged
The overlay of examples/literate-flake reads nothing from the closure. Its flake.nix passes the dependencies to mkLib and explains in a comment how a file reads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The members of an attribute set have no order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nix-caisson/caisson-core#59 and nix-caisson/caisson#144 name the pinned trees of a flake
dependencies. A registered file reads them asclosure-lib.caisson.dependencies.<name>. This pull request describes that API.The concept page is now titled "Closed-over Dependencies", and its file is
concepts/closed-over-dependencies.md. The deep dive is now titled "How dependencies are closed over", and its file isdeep-dives/how-dependencies-are-closed-over.md. Every link to either page points at the new path.Every example reads
closure-lib.caisson.dependenciesinside a module body or an overlay function. A library overlay'simportslist is read while the overlay is registered, so overlay examples name their imports with registry names such as"some-flake/default".Running
mdbook buildon this branch produces no warnings.🤖 Generated with Claude Code