Skip to content

Read the dependencies of a tree from the closure lib - #144

Merged
clhodapp merged 2 commits into
mainfrom
refactor/dependencies
Nov 7, 2026
Merged

clhodapp merged 2 commits into
mainfrom
refactor/dependencies

Conversation

@clhodapp

@clhodapp clhodapp commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

nix-caisson/caisson-core#59 names the pinned trees of a tree dependencies and takes the closure argument out of what registered files receive. This pull request moves caisson onto that and pins caisson-core at that pull request's commit in both flake.lock and tests/dependencies/flake.lock.

  • lib.caisson.dependencies is a view of lib.caisson-core.libManifest.dependencies. A registered file reads a dependency as closure-lib.caisson.dependencies.<name>.
  • The functions under lib.caisson.pins (pins.flake, pins.flake-compat and pins.npins) return dependencies beside root, so a flake top writes inherit (caisson.lib.caisson.pins.flake inputs) dependencies root;.
  • Every reader of the manifest reads dependencies, and the ecosystem account records from = "dependencies" for a source found among them.
  • A package file built by mkPackagesOverlay receives { callPackage, lib }, and a polyfill overlay function receives { lib }. Both read dependencies from lib.
  • caisson's own registered files, the literate-flake example and the tests read the dependencies through closure-lib.

Every check of checks.x86_64-linux evaluates. Every check except the VM tests (activation-vm, hjem-system and the two system-manager-vm-* checks) also builds locally.

🤖 Generated with Claude Code

caisson-core passes the pinned trees to mkLib as `dependencies` and a
registered file reads them through its closure lib. `lib.caisson.dependencies`
is the view of `lib.caisson-core.libManifest.dependencies`, and the pin
readers return `{ dependencies, root }`. A package file built by
mkPackagesOverlay receives `{ callPackage, lib }` and reads the
dependencies from `lib`. caisson-core is pinned at its
refactor/dependencies branch in both locks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
caisson-core#59 is merged; this pins its merge commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
clhodapp merged commit 9ad6f1f into main Nov 7, 2026
9 checks passed
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