Skip to content

Name the pinned trees dependencies and read them from the closure lib - #59

Merged
clhodapp merged 1 commit into
mainfrom
refactor/dependencies
Nov 7, 2026
Merged

clhodapp merged 1 commit into
mainfrom
refactor/dependencies

Conversation

@clhodapp

@clhodapp clhodapp commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

mkLib takes the pinned trees of a tree as dependencies and records them in the manifest under the same name. resolve takes dependencies, and selectedSourceName takes { selection, dependencies }.

A registered file reads the dependencies through its closure lib, at closure-lib.caisson-core.libManifest.dependencies. The closure attribute set holds the lib and the registration helpers:

  • a module receives { closure-lib, mkModule, ... };
  • a library overlay receives { closure-lib, mkLibOverlay, mkModule, ... };
  • a package overlay receives { closure-lib, mkPkgOverlay, ... }.

This breaks every mkLib call that passes sources and every registered file that names closure-inputs. nix-caisson/caisson#144 moves caisson onto the new names and adds the view lib.caisson.dependencies. nix-caisson/nix-caisson.github.io#92 updates the documentation.

The manifest stores each pin record in its recorded form, with pin files inside the root restated relative to the root. A registered file reads a pin record in that recorded form.

nix eval -f tests summary reports 138 passing tests, and nix flake check passes.

🤖 Generated with Claude Code

…losure lib

mkLib takes the pinned trees of a tree as `dependencies` and records
them in the manifest under the same name. A registered file reads them
through `closure-lib.caisson-core.libManifest.dependencies`, so the
closure attribute set holds the lib and the registration helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@clhodapp clhodapp self-assigned this Nov 1, 2026
@clhodapp
clhodapp merged commit 25cf602 into main Nov 7, 2026
1 of 2 checks passed
clhodapp added a commit to clhodapp/nixpkgs-rust that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/merman-nix that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/rea-nix that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/nbd-nix that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/flake-sync that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-zsh-config that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-microvm that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-emacs-config that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/uefi-shell-launcher that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/edk2-platforms-nix that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/big-console that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-ai-workbench that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-emacs-config that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-ai-workbench that referenced this pull request Nov 7, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clhodapp added a commit to clhodapp/ch-ai-workbench that referenced this pull request Nov 8, 2026
caisson passes the pinned trees to mkLib as `dependencies`, and a
registered file reads them as `closure-lib.caisson.dependencies`
(nix-caisson/caisson-core#59, nix-caisson/caisson#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant