-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
29 lines (29 loc) · 1014 Bytes
/
shell.nix
File metadata and controls
29 lines (29 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
pkgs,
system,
}:
pkgs.mkShell rec {
packages = (import ./lib.nix).devPkgs {inherit pkgs system;};
LD_LIBRARY_PATH =
pkgs.lib.makeLibraryPath ([pkgs.stdenv.cc.cc pkgs.zlib] ++ packages);
shellHook =
(
if !pkgs.lib.strings.hasSuffix "darwin" system
then ""
else ''
export CHROME_EXECUTABLE_PATH='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
''
)
+ ''
export PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines}/bin/schema-engine"
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_INTROSPECTION_ENGINE_BINARY="${pkgs.prisma-engines}/bin/introspection-engine"
export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
export PATH="$PWD/node_modules/.bin:$PATH"
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
set -a
source .env
set +a
'';
}