From be91aafb582d50ccfafde67be599a6d740f2c431 Mon Sep 17 00:00:00 2001 From: greysoh Date: Wed, 17 Apr 2024 17:55:40 -0400 Subject: [PATCH] feature: Adds NixOS support. --- shell.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 0fc40df..72697b9 100644 --- a/shell.nix +++ b/shell.nix @@ -2,5 +2,10 @@ let pkgs = import (fetchTarball ("channel:nixpkgs-unstable")) { }; in pkgs.mkShell { - buildInputs = [ pkgs.nodejs pkgs.sqlite ]; + buildInputs = [ pkgs.nodejs pkgs.sqlite pkgs.openssl ]; + shellHook = '' + export PRISMA_QUERY_ENGINE_BINARY=${pkgs.prisma-engines}/bin/query-engine + export PRISMA_QUERY_ENGINE_LIBRARY=${pkgs.prisma-engines}/lib/libquery_engine.node + export PRISMA_SCHEMA_ENGINE_BINARY=${pkgs.prisma-engines}/bin/schema-engine + ''; } \ No newline at end of file