feature: Adds NixOS support.
This commit is contained in:
parent
35e23357ef
commit
be91aafb58
1 changed files with 6 additions and 1 deletions
|
@ -2,5 +2,10 @@ let
|
||||||
pkgs = import (fetchTarball ("channel:nixpkgs-unstable")) { };
|
pkgs = import (fetchTarball ("channel:nixpkgs-unstable")) { };
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue