nix: isolate dev inputs in partitions.dev so consumers only fetch what they need #162
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis!162
Loading…
Reference in a new issue
No description provided.
Delete branch "nix/partition-dev-inputs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nix evaluates every flake input even when only
packages/overlaysare needed, sonix runand downstream consumers were fetchingrust-overlay,treefmt-nix,git-hooks, andhome-managerwhich are only needed for dev shells, checks, and formatting.dev/flake.nixand expose them viaflake-partspartitions.dev(extraInputsFlake). Rootflake.nixnow declares onlynixpkgs,flake-parts, andcrane.nixpkgspin asnixpkgs-devin the dev flake to avoid revision skew; routechecks/devShells/formatterback viapartitionedAttrssonix develop,nix fmt, andnix flake checkkeep working without workflow changes.nix build .#felisand downstreamflake.lockfree of dev-only nodes (verified with a filtered consumer lock). Docs and skill references updated fromflake.nixtodev/flake-module.nixwhere appropriate.Verification:
nix flake showunchanged,nix build .#felisandnix flake check(includingmsrv/home-manager-module/pre-commit/treefmt) pass, and an isolated fetch test with broken dev URLs still builds the package.473c7f7d3f0bf59f02fa0bf59f02fa4dada3cf5c