Skip to content

Follow this flake's own nixpkgs on the flake-lib input - #10

Merged
jgus merged 2 commits into
mainfrom
agent/fleet-flake-standard
Nov 4, 2026
Merged

jgus merged 2 commits into
mainfrom
agent/fleet-flake-standard

Conversation

@jgus-bot

@jgus-bot jgus-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

What

Follow this flake's own nixpkgs on the flake-lib input. The fleet rule in flake-lib#118 is that an input follows every input the parent already pins unless a specific technical reason blocks it. Leaving the edge off meant this tree carried two nixpkgs: flake-lib's library evaluated against flake-lib's own pin while the packages built against ours. Declaring the edge in the block form the other producers already use collapses them into one, and the treefmt-nix that flake-lib pins resolves through the same edge.

Add AGENTS.md pointing at the fleet flake standard, with CLAUDE.md as the compatibility symlink. This repository carried no agent instruction at all.

Tracking nixos-unstable instead of nixos-26.05. mkFormatting puts pkgs.pedantix in the nixfmt wrapper's runtimeInputs, so following flake-lib's nixpkgs makes pedantix a requirement of this tree — and nixos-26.05 has none, which makes the flake fail to evaluate with the edge added. formatter and checks.formatting both come from that one binding, so nix fmt is unreachable here rather than merely unchecked. nixos-unstable carries pedantix, and tracking it is the right channel for a flake whose purpose is pulling in upstream releases.

Verification

  • nix run github:jgus-org/flake-lib/v1#build-and-check — exit 0, all checks passed! — the same gate this repository's own workflow runs, building the published packages and running nix flake check.
  • nix flake lock: the root nixpkgs moves 74cc63f702 → 1d060086d6, and flake-lib's separate pin at 5adc50831c collapses into it.
  • flake-lib itself stays pinned at b4dac0f578 (v1).
  • git ls-files -s CLAUDE.md — 120000 47dc3e3d…, a symlink rather than a copy.

Merge order

The precondition here is already satisfied: flake-lib#118 is merged and v1 points at main, so the links to the standard resolve. This branch is on current main; the scheduled updater commits to version branches, not main, so re-check against main before merging. Merging is the maintainer's.

Agent added 2 commits November 4, 2026 12:39
This flake tracked nixos-26.05, which carries no pedantix, and mkFormatting puts pkgs.pedantix in the
nixfmt wrapper's runtime inputs, so following flake-lib's nixpkgs there makes the flake fail
to evaluate: the formatter and checks.formatting both come from that one binding, and nix fmt
becomes unreachable in the tree rather than merely unchecked. nixos-unstable carries pedantix,
and tracking it is the right channel for a flake whose purpose is pulling in upstream releases.

An input follows every input the parent already pins unless a specific technical reason
blocks it, and there is none here. Leaving the edge off gave this tree two nixpkgs: flake-lib's
library evaluated against its own pin while the packages built against ours. Following collapses
them into one.

The documented reason for dropping the edge was that flake-lib's formatter tools resolve from
flake-lib's nixpkgs, and following would let a repo format differently from the rest of the
fleet. That reasoning is corrected in jgus-org/flake-lib#118: a flake's formatter runs only in
its own root against its own lock, so the version that root resolves is already canonical for
that tree. What flake-lib keeps fixed is the program set and the style files, both delivered by
absolute store path.
The standard for our flake structure lives with the shared implementation it
describes, so this repository links it instead of carrying a copy. CLAUDE.md is
the usual compatibility symlink.
@jgus
jgus merged commit ee71246 into main Nov 4, 2026
1 check passed
@jgus
jgus deleted the agent/fleet-flake-standard branch November 4, 2026 20:43
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