Skip to content

fix: read stdenv.hostPlatform.system in the consumer overlay - #1022

Merged
c-vigo merged 1 commit into
release/1.1.0from
bugfix/1021-consumer-overlay-system
Jul 13, 2026
Merged

c-vigo merged 1 commit into
release/1.1.0from
bugfix/1021-consumer-overlay-system

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1017. The 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system' nixpkgs eval warning was cleared from the devkit's own dev-shell, but survived for a scaffolded consumer's nix develop.

The residual was the shared consumer overlay (vigos.overlays.default), the one code path #1017 never exercised: it reads final.system inside the fixpoint, so any consumer that applies the overlay and forces a fast-mover package (uv, gh, claude-code) evaluates the renamed-away attribute and gets the warning. The devkit itself takes the hoisted importUnstable system path with a concrete system, which is why it looked fully fixed.

flake.nix:119 now reads final.stdenv.hostPlatform.system — the idiom already used at flake.nix:314.

Verification

Evaluated the consumer path directly (plain nixpkgs + overlays.default, forcing claude-code, exactly as mkProjectShell does), with and without the fix:

eval output
before evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'
after (no warning)

Both resolve to the same derivation, /nix/store/h09svv06fs1qx8argj6mz7lz7mzwsqn8-claude-code-2.1.206.drv — a pure alias, no rebuild, no behaviour change.

The devkit's own dev-shell stays clean: nix eval .#devShells.x86_64-linux.default.drvPath emits no warning.

Full local hook suite (just precommit) green.

No test commit: a Nix attribute rename has no unit-testable surface, so the before/after eval above is the evidence — same approach as #1017.

Acceptance criteria

  • A scaffolded consumer's nix develop emits no 'system' has been renamed warning.
  • Devkit's own dev-shell remains clean.

Refs: #1021

The shared consumer overlay (overlays.default) read the renamed-away
final.system, so a scaffolded consumer's nix develop still emitted the
'system' has been renamed eval warning that #1017 cleared from the
devkit's own dev-shell. Pure alias: the resolved fast-mover derivations
are byte-identical.

Refs: #1021
@c-vigo
c-vigo enabled auto-merge July 13, 2026 13:58
@c-vigo
c-vigo merged commit c5ab209 into release/1.1.0 Jul 13, 2026
14 checks passed
@c-vigo
c-vigo deleted the bugfix/1021-consumer-overlay-system branch July 13, 2026 14:06
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.

1 participant