prisma-engines: add setup hook for configuring environment variables (#416928)

This commit is contained in:
Sefa Eyeoglu
2025-06-15 15:16:54 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
@@ -63,6 +63,8 @@ rustPlatform.buildRustPackage rec {
# Tests are long to compile
doCheck = false;
setupHook = ./setup-hook.sh;
meta = with lib; {
description = "Collection of engines that power the core stack for Prisma";
homepage = "https://www.prisma.io/";
@@ -0,0 +1,4 @@
export PRISMA_SCHEMA_ENGINE_BINARY="@out@/bin/schema-engine"
export PRISMA_QUERY_ENGINE_BINARY="@out@/bin/query-engine"
export PRISMA_QUERY_ENGINE_LIBRARY="@out@/lib/libquery_engine.node"
export PRISMA_FMT_BINARY="@out@/bin/prisma-fmt"