Skip to content

chore: add flake.lock for reproducible nix devShell#12

Open
JacobPEvans-personal wants to merge 2 commits into
mainfrom
chore/add-flake-lock
Open

chore: add flake.lock for reproducible nix devShell#12
JacobPEvans-personal wants to merge 2 commits into
mainfrom
chore/add-flake-lock

Conversation

@JacobPEvans-personal
Copy link
Copy Markdown
Member

Auto-generated by nix develop resolving flake.nix inputs (nix-devenv

  • nixpkgs-25.11-darwin). Commit per Nix convention so every contributor
    resolves the same devShell toolchain versions.

Assisted-by: Claude noreply@anthropic.com

Auto-generated by `nix develop` resolving flake.nix inputs (nix-devenv
+ nixpkgs-25.11-darwin). Commit per Nix convention so every contributor
resolves the same devShell toolchain versions.

Assisted-by: Claude <noreply@anthropic.com>
The previous lock pulled nix-devenv's ROOT flake, which imports
cachix/devenv to support its Python/AI shells (ai-dev, orchestrator,
mlx-server). devenv drags in cachix x3, gitignore x5, nixpkgs x5,
git-hooks x3, flake-compat x3, pre-commit-hooks x2, etc. — none
sharing `follows` declarations, so we locked the full transitive
soup: 889 lines, ~30 distinct input fetches.

The typescript shell doesn't need any of that. `shells/typescript/`
in nix-devenv is a standalone subflake whose only input is nixpkgs
(see nix-devenv/main/shells/typescript/flake.nix:5).

Switch to that subflake via `?dir=shells/typescript` and follows
our root nixpkgs into it. Result:
  - 889 → 50 lines
  - 30+ input fetches → 2 (nixpkgs + the subflake itself)
  - One nixpkgs, used everywhere

The devShell content is identical (same default.nix imported either
way); only the lock graph shrinks.

`nix flake check` passes; `devShells.<system>.default` still resolves
to the same TypeScript shell (nodejs_22, pnpm, typescript, biome).

Assisted-by: Claude <noreply@anthropic.com>
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