Repository navigation
Follow this flake's own nixpkgs on the flake-lib input - #10
Merged
Merged
Conversation
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.
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.
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-nixthat flake-lib pins resolves through the same edge.Add
AGENTS.mdpointing at the fleet flake standard, withCLAUDE.mdas the compatibility symlink. This repository carried no agent instruction at all.Tracking
nixos-unstableinstead ofnixos-26.05.mkFormattingputspkgs.pedantixin the nixfmt wrapper'sruntimeInputs, so following flake-lib'snixpkgsmakespedantixa requirement of this tree — andnixos-26.05has none, which makes the flake fail to evaluate with the edge added.formatterandchecks.formattingboth come from that one binding, sonix fmtis unreachable here rather than merely unchecked.nixos-unstablecarriespedantix, 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 runningnix flake check.nix flake lock: the rootnixpkgsmoves74cc63f702→1d060086d6, and flake-lib's separate pin at5adc50831ccollapses into it.flake-libitself stays pinned atb4dac0f578(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
v1points atmain, so the links to the standard resolve. This branch is on currentmain; the scheduled updater commits to version branches, notmain, so re-check againstmainbefore merging. Merging is the maintainer's.