20 lines
471 B
Nix
20 lines
471 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
|
prisma-engines = pkgs.prisma-engines;
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
nodejs
|
|
openssl
|
|
prisma-engines
|
|
];
|
|
|
|
shellHook = ''
|
|
export PRISMA_QUERY_ENGINE_BINARY="${prisma-engines}/bin/query-engine"
|
|
export PRISMA_MIGRATION_ENGINE_BINARY="${prisma-engines}/bin/migration-engine"
|
|
export PRISMA_FMT_BINARY="${prisma-engines}/bin/prisma-fmt"
|
|
export PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1
|
|
'';
|
|
}
|