Repository navigation
fix: read stdenv.hostPlatform.system in the consumer overlay - #1022
Merged
Merged
Conversation
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
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.
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'snix develop.The residual was the shared consumer overlay (
vigos.overlays.default), the one code path #1017 never exercised: it readsfinal.systeminside 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 hoistedimportUnstable systempath with a concrete system, which is why it looked fully fixed.flake.nix:119now readsfinal.stdenv.hostPlatform.system— the idiom already used atflake.nix:314.Verification
Evaluated the consumer path directly (plain nixpkgs +
overlays.default, forcingclaude-code, exactly asmkProjectShelldoes), with and without the fix:evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'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.drvPathemits 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
nix developemits no'system' has been renamedwarning.Refs: #1021