GeezerVison is showing github.com — pkgs/id: build.zig fails on zig 0.16 (OptimizeMode.small) — blocks nixos-rebuild switch · Issue #10313 · developing-today/code
pkgs/id: build.zig fails on zig 0.16 (OptimizeMode.small) — blocks nixos-rebuild switch #10313
Description
pkgs/id fails to build on current main — blocks nixos-rebuild switch
Found 2026-11-14 while deploying #10141 (the pm-aggregator switch): a full nixos-rebuild build --flake ~/git/code#amd from clean main (7c7627a) fails in pkgs/id (id-0.1.0):
build.zig:4:78: error: enum 'builtin.OptimizeMode' has no member named 'small'
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .small });
The pinned zig (0.16.0 in the current nixpkgs) renamed/removed the .small optimize-mode member. Everything else in the closure builds (verified: pkgs/pm-aggregator builds clean; the fleet crate was still compiling when the id failure aborted the build).
Impact: the laptop cannot switch to current main until this is fixed, so merged NixOS-packaged changes (e.g. the #10141 aggregator host-health surfacing) build but do not go live via the normal merge → switch path. User-level deployments (systemd user timers/scripts) are unaffected.
Fix direction: adapt pkgs/id's build.zig to the zig 0.16 API for the preferred optimize mode (or pin the package to the zig version it was written against).
Activity
developing-today commented on Nov 14, 2026
dezren39 commented on Nov 15, 2026
Verified on current origin/main at ff161a7297933d3aa7e8c2da4fe0be785756fadf (local HEAD, fetched 2026-11-15): pkgs/id/examples/roc-world/host/build.zig no longer uses .small/.debug.
- At the commit cited in this issue (
7c7627a78c): preferred_optimize_mode = .small and strip = optimize != .debug (git show 7c7627a78c:pkgs/id/examples/roc-world/host/build.zig).
- Current main:
preferred_optimize_mode = .ReleaseSmall and strip = optimize != .Debug (pkgs/id/examples/roc-world/host/build.zig:4,13).
- Fixed by commit
6c04036830a13ca2c88a1e2674b27db37715a27b ("fix(id): roc-world host build.zig — Zig 0.16 OptimizeMode names (ReleaseSmall/Debug)") which changed pkgs/id/examples/roc-world/host/build.zig.
This appears fixed on current main; closing as fixed. If a nixos-rebuild on a current checkout still fails for a different Zig 0.16 API reason, please reopen with the new error/commit.
Metadata
Metadata
Development
No branches or pull requestsIssue actions