Repository navigation
chore(flake): add nodejs to the dev shell - #440
Merged
Merged
Conversation
prisma-client-py and pyright both shell out to node. Without it on PATH they fall back to nodeenv, which can't fetch prisma engines for linux-nixos, so 'prisma generate' and 'uv run pyright .' fail inside the dev shell. With nodejs present, the shellHook's PRISMA_*_BINARY vars supply the engines and the README check suite runs as documented.
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.
prisma generateanduv run pyright .both fail insidenix developon NixOS because neither tool can find anodebinary.The Python
prismapackage ships no CLI and no engines —prisma/cli/prisma.pynpm-installsprisma@5.17.0into~/.cache/prisma-python/binaries/and runs that JS CLI with node.nodePackages.prismain the shell doesn't help: prisma-client-py insists on its own npm-pinned version. Withoutnodeon PATH it falls back to nodeenv, which then 404s fetching prisma engines forlinux-nixos.The engines were never the problem — the
shellHook'sPRISMA_*_BINARYexports already cover those. Only the interpreter was missing.Verified inside
nix developwith this change:nodev20.19.1prisma generate✔ Generated Prisma Client Pythonuv run pyright .→ 0 errorsuv run ruff check .→ all checks passeduv run black --check .→ 16 files unchangeduv run python generate_openapi.py✓So the README's check suite now runs natively in the dev shell.
I left
uvandbunout deliberately: nixpkgs 24.11 ships an older uv that may not read the currentuv.lockformat, and a shell input would shadow a newer system uv.