Skip to content

prisma, prisma-engines: 6.18.0 -> 7.0.1 - #467188

Closed
mahmoudajawad wants to merge 3 commits into
NixOS:masterfrom
mahmoudajawad:master
Closed

mahmoudajawad wants to merge 3 commits into
NixOS:masterfrom
mahmoudajawad:master

Conversation

@mahmoudajawad

@mahmoudajawad mahmoudajawad commented Dec 2, 2025 •

Copy link
Copy Markdown

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Notes


Add a 👍 reaction to pull requests you find important.

Remove `cargo` instructions to build obsolete packages `query-engine`,
`query-engine-node-api`

Remove obsolete env variables `PRISMA_QUERY_ENGINE_BINARY`, `PRISMA_QUERY_ENGINE_LIBRARY`
Remove wrapper for obsolete package `query-engine`
Fix already broken test, and update for breaking changes of Prisma 7
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! labels Dec 2, 2025
@mahmoudajawad
mahmoudajawad marked this pull request as ready for review December 3, 2025 11:12
@nixpkgs-ci
nixpkgs-ci Bot requested review from aqrln and tomhoule December 3, 2025 11:13
@mahmoudajawad
mahmoudajawad marked this pull request as draft December 3, 2025 19:52
@mahmoudajawad
mahmoudajawad marked this pull request as ready for review December 3, 2025 19:54
@aqrln

aqrln commented Dec 4, 2025

Copy link
Copy Markdown
Member

I think we shouldn't replace Prisma 6 with Prisma 7 but we should have both for the time being. Prisma 7 is a big change, and it will take a while until projects migrate. We won't be able to build the packages like documenso that rely on prisma in nixpkgs with Prisma 7 right now. prisma/prisma-engines would be aliases that already point at prisma_7/prisma-engines_7 or something like that but *_6 packages should still be available.

@mahmoudajawad

Copy link
Copy Markdown
Author

Thank you for looking at this PR, @aqrln

prisma/prisma-engines would be aliases that already point at prisma_7/prisma-engines_7 or something like that but *_6 packages should still be available.

Very well. Will set this to draft and make further changes.

I will:

  • rename current package to prisma_6 and introduce prisma as a package pointing at prisma_6, and
  • introduce this change as prisma_7

Thank you again

@Daste745

Daste745 commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

[...] and introduce prisma as a package pointing at prisma_6

I think it should be the other way around. prisma should be an alias for the latest version, and prisma_6 should be used in places where they didn't yet migrate to prisma 7. I think that's also what @aqrln meant in the prev. reply.

@aqrln

aqrln commented Dec 5, 2025

Copy link
Copy Markdown
Member

Ah yes, didn't catch this when reading @mahmoudajawad's response. +1 to what @Daste745 said, prisma should be an alias for prisma_7, and prisma_6 should be used explicitly in packages that require it.

@aqrln aqrln added 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment labels Dec 5, 2025
@mahmoudajawad
mahmoudajawad marked this pull request as draft December 5, 2025 15:55
@jnsgruk

jnsgruk commented Dec 12, 2025

Copy link
Copy Markdown
Member

My understanding is that Prisma 7 deprecated environment variables such as ‘PRISMA_SCHEMA_ENGINE_BINARY’ which is used in a few places in nixpkgs to stop prisma trying to download bins at build time.

Does anyone know of the impact of this not being supported any more? Or does the recent rewrite moving from Rust -> Typescript make this a non-issue?

@jnsgruk

jnsgruk commented Dec 12, 2025

Copy link
Copy Markdown
Member

(Edit: I’m afk for a few days but happy to try and help this land and review/merge at the end! Seems like there is some renaming to do in order to introduce prisma_6, and therefore some edit on existing packages?)

@aqrln

aqrln commented Dec 13, 2025 •

Copy link
Copy Markdown
Member

My understanding is that Prisma 7 deprecated environment variables such as ‘PRISMA_SCHEMA_ENGINE_BINARY’ which is used in a few places in nixpkgs to stop prisma trying to download bins at build time.

This is not entirely correct. PRISMA_SCHEMA_ENGINE_BINARY still exists and needs to be used in nixpkgs because there still is a native schema engine binary used by the CLI (i.e. prisma package in nixpkgs).

@prisma/client doesn't depend on any native binaries anymore, all remaining Rust code used at run time is compiled to WebAssembly and much of the logic has been moved to JS completely, so the PRISMA_QUERY_ENGINE_BINARY/PRISMA_QUERY_ENGINE_LIBRARY env vars don't exist anymore indeed.

PRISMA_FMT_BINARY was removed years ago from Prisma ORM and the prisma-fmt binary which is still built here in nixpkgs is not used by Prisma in any way. The crate itself is just legacy tech debt, no one has taken the time to update some tests in the prisma-engines repo that rely on it. It should be just dropped, there's no reason to ship it in nixpkgs. The Prisma CLI commands and the language server have been relying on a WebAssembly module and not the prisma-fmt binary for two or three years already.

@Daste745

Copy link
Copy Markdown
Contributor

#458913 (6.18.0 -> 6.19.0) got merged into master, so you could bump the prisma_6 package from 6.19.0 to 6.19.1

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 13, 2025
@jnsgruk jnsgruk mentioned this pull request Dec 19, 2025
4 of 13 tasks
@jnsgruk

jnsgruk commented Dec 19, 2025

Copy link
Copy Markdown
Member

Closing in favour of #472380. Thanks @mahmoudajawad!

@jnsgruk jnsgruk closed this Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants