Repository navigation
Retire the system-library carry nixpkgs now makes itself - #31
Merged
Merged
Conversation
NixOS/nixpkgs#584667 adds aws-lc, oniguruma, sqlite, and zstd to the buildInputs of nixpkgs' own codex. It merged to master on 2026-11-08, so a consumer that follows its nixpkgs into this flake now resolves a nixpkgs that carries them — exactly the condition this block's guard tests for. The four libraries reach the build from nixpkgs' own codex now, so the carry is redundant past that revision while its guard is a hard evaluation failure for every consumer past it. This flake's own lock stays at nixpkgs 4fe25e12eb9f4c744966dd3de5a05246cf098601, which predates the cargoSetupHook change (NixOS/nixpkgs#537108) that made the carry necessary, so the gate builds the package it built before the carry existed.
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.
Incident
flake-update.serviceond1failed its 2026-11-12 00:00 MST run in the after-update enumeration step: thenix evalover every buildable flake output died withThe message is this flake's own guard (
flake.nixat 93ee690), reached through the homelab root, which consumesgithub:jgus-org/codex-flakewith no ref pin and follows its own nixpkgs into it (jgus-org/nixflake.nix:46-52). The updater committed nothing and pushed nothing, and no deployed system was affected — the baseline closure built clean.Cause: two input transitions, neither sufficient alone
codex:47d19607→93ee690, which is where the guard lives (PR Carry the system libraries nixpkgs' codex does not declare #30).nixpkgs: →177d0540942fb205af6993b1d5fa0b57799e09f8(2026-11-09), which carries NixOS/nixpkgs#584667 — the condition the guard retires on.Bisected by evaluation against the root: updating
home-manageralone evaluates clean,nixpkgsalone evaluates clean, all inputs together throws. The guard is only reachable once a consumer resolves thiscodextogether with a nixpkgs carrying 584667, so the next update does not clear it — the channel only moves forward.Change
Delete the block and its one call site. nixpkgs' own
codexdeclaresaws-lc,oniguruma,sqlite, andzstdin itsbuildInputsnow, and the existing override keeps nixpkgs'buildInputsuntouched.Verification
177d0540into the producer: producer at93ee690throwsRemove this code block (...); this branch evaluates tocodex-0.167.1.drv.buildInputs(aws-lc-5.12.0,oniguruma,sqlite-3.54.0,zstd-1.5.7), now contributed by nixpkgs instead of by the carry.4fe25e12, which predates thecargoSetupHookchange rustplatform.cargoSetupHook: force common system libs NixOS/nixpkgs#537108 that made the carry necessary — the package still evaluates, andchecks.x86_64-linux.formattingpasses.93ee690it reproduces the throw above; with this branch it enumerates every target and exits 0.177d0540— the revision the consumer's updater selects: succeeds,checkPhaseruns the isolated process-shell cases (test result: ok. 5 passed; 0 failed), outputcodex-0.167.1.Build and Checkgate on this pull request passes: run 43181707993, jobbuild-and-check→ success, building the package at this flake's own nixpkgs.Consumer note
The root needs no change.
input-pkgs.codexpoints straight atcodex.packages.<system>.codex, and the nightlypackages.flake-updateadvances this input, so a merge here puts the fix on the next run. jgus-org/nix#436, which moved this carry from the root into here, now changes no files at all and can be closed unmerged.