Skip to content

Add nix flake for working Prisma engines on NixOS - #32

Merged
tknkaa merged 1 commit into
mainfrom
nix-prisma-flake
Aug 22, 2026
Merged

Add nix flake for working Prisma engines on NixOS#32
tknkaa merged 1 commit into
mainfrom
nix-prisma-flake

Conversation

@tknkaa

@tknkaa tknkaa commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds flake.nix/flake.lock using nix-prisma-utils to provide NixOS-patched Prisma schema-engine and prisma-fmt binaries via devShells.default
  • Fixes Prisma's engine binaries not running on NixOS (non-FHS dynamic linker) without pinning prisma-engines from nixpkgs
  • devShell also provides nodejs_24 to match the version currently used locally

Test plan

  • nix develop builds successfully
  • npx prisma -v shows schema engine resolved via PRISMA_SCHEMA_ENGINE_BINARY from the Nix store
  • npx prisma generate succeeds inside the dev shell

🤖 Generated with Claude Code

Uses nix-prisma-utils to provide patched schema-engine/prisma-fmt
binaries so `prisma generate`/`migrate` work under NixOS's non-FHS
dynamic linker without needing prisma-engines from nixpkgs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Tatsu723
Tatsu723 temporarily deployed to nix-prisma-flake - vocabook PR #32 August 22, 2026 03:34 — with Render Destroyed
@tknkaa
tknkaa merged commit 7fda7c7 into main Aug 22, 2026
2 checks passed
@tknkaa
tknkaa deleted the nix-prisma-flake branch August 22, 2026 04:15
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.

2 participants