Rust-free ORM still download engine binary

Hello 👋 Some (important) context first: I'm developing a Prisma-powered project and I'm switching between 2 laptops: - ✅ Ubuntu - Prisma works perfectly fine on it - ⚠️ NixOS - Prisma fails to download engine binary When I read about the new Rust-free ORM, I decided to switch to it because from my understanding reading the docs, there is no more engine binary (so I thought no more issue with OSes like NixOS). I successfully installed it but it keeps trying to download the engine binary with the following error:
> Downloading Prisma engines for Node-API for linux-nixos
Error: Failed to fetch sha256 checksum at https://binaries.prisma.sh/all_commits/9c30299f5a0ea26a96790e13f796dc6094db3173/linux-nixos/schema-engine.gz.sha256 - 404 Not Found
> Downloading Prisma engines for Node-API for linux-nixos
Error: Failed to fetch sha256 checksum at https://binaries.prisma.sh/all_commits/9c30299f5a0ea26a96790e13f796dc6094db3173/linux-nixos/schema-engine.gz.sha256 - 404 Not Found
I checked if I configured things correctly multiple times and I even tried the official Nuxt 3 Prisma example (https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nuxt3-starter-nodejs) but I got the exact same error when running pnpm prisma generate. Am I misunderstanding something about how the new Rust-free ORM works or is it a bug? Thanks for your help!
4 Replies
Prisma AI Help
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Deckluhm
DeckluhmOP5w ago
Note that I have read the following issue https://github.com/prisma/prisma/issues/27703 and jkomyno's response but as stated in my initial post, I only tried to run pnpm prisma generate which shouldn't need engine binary.
Nurul
Nurul4w ago
I wonder if this is related to NixOS, see this related GitHub Issue: https://github.com/prisma/prisma/discussions/24405 To confirm, have you configured any custom prisma specific environment variables? https://www.prisma.io/docs/orm/reference/environment-variables-reference#engine-environment-variables
Deckluhm
DeckluhmOP4w ago
Thanks for the reply 🙏 I already saw this issue but I thought the new Rust-free ORM would remove the need for platform-specific engine binary? (that's why I switched when I read about it) Am I misunderstanding something about all of this?

Did you find this page helpful?