Skip to content

Retire the system-library carry nixpkgs now makes itself - #31

Merged
jgus merged 1 commit into
mainfrom
agent/retire-codex-syslibs-carry
Nov 12, 2026
Merged

jgus merged 1 commit into
mainfrom
agent/retire-codex-syslibs-carry

Conversation

@jgus-bot

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

Copy link
Copy Markdown
Contributor

Incident

flake-update.service on d1 failed its 2026-11-12 00:00 MST run in the after-update enumeration step: the nix eval over every buildable flake output died with

error: Remove this code block (https://github.com/NixOS/nixpkgs/pull/584667)

The message is this flake's own guard (flake.nix at 93ee690), reached through the homelab root, which consumes github:jgus-org/codex-flake with no ref pin and follows its own nixpkgs into it (jgus-org/nix flake.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

Bisected by evaluation against the root: updating home-manager alone evaluates clean, nixpkgs alone evaluates clean, all inputs together throws. The guard is only reachable once a consumer resolves this codex together 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 codex declares aws-lc, oniguruma, sqlite, and zstd in its buildInputs now, and the existing override keeps nixpkgs' buildInputs untouched.

Verification

  • One harness, one variable — a consumer flake following nixpkgs 177d0540 into the producer: producer at 93ee690 throws Remove this code block (...); this branch evaluates to codex-0.167.1.drv.
  • The four libraries are still in the package's buildInputs (aws-lc-5.12.0, oniguruma, sqlite-3.54.0, zstd-1.5.7), now contributed by nixpkgs instead of by the carry.
  • At this flake's own lock — nixpkgs 4fe25e12, which predates the cargoSetupHook change rustplatform.cargoSetupHook: force common system libs NixOS/nixpkgs#537108 that made the carry necessary — the package still evaluates, and checks.x86_64-linux.formatting passes.
  • The consumer's failing step itself: a clone of the homelab root with every input updated, evaluating the toplevel of every machine on the system. With this flake at 93ee690 it reproduces the throw above; with this branch it enumerates every target and exits 0.
  • Full build of this package against nixpkgs 177d0540 — the revision the consumer's updater selects: succeeds, checkPhase runs the isolated process-shell cases (test result: ok. 5 passed; 0 failed), output codex-0.167.1.
  • The Build and Check gate on this pull request passes: run 43181707993, job build-and-check → success, building the package at this flake's own nixpkgs.

Consumer note

The root needs no change. input-pkgs.codex points straight at codex.packages.<system>.codex, and the nightly packages.flake-update advances 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.

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.
@jgus
jgus merged commit c290277 into main Nov 12, 2026
1 check passed
@jgus
jgus deleted the agent/retire-codex-syslibs-carry branch November 12, 2026 14:48
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