-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-nix.sh
20 lines (16 loc) · 1.09 KB
/
setup-nix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p protobuf pkg-config zlib openssl nodejs cargo
pnpm install # install all packages, so the node_modules folder is available
git clone https://github.com/prisma/prisma-engines/
cd prisma-engines
#source .envrc # idk if needed
cargo build --release
cd ..
cp prisma-engines/target/release/introspection-engine node_modules/@prisma/cli/introspection-engine-linux-nixos
cp prisma-engines/target/release/migration-engine node_modules/@prisma/cli/migration-engine-linux-nixos
cp prisma-engines/target/release/query-engine node_modules/@prisma/cli/query-engine-linux-nixos
cp prisma-engines/target/release/prisma-fmt node_modules/@prisma/cli/prisma-fmt-linux-nixos
cp prisma-engines/target/release/introspection-engine node_modules/@prisma/sdk/introspection-engine-linux-nixos
cp prisma-engines/target/release/migration-engine node_modules/@prisma/sdk/migration-engine-linux-nixos
cp prisma-engines/target/release/query-engine node_modules/@prisma/sdk/query-engine-linux-nixos
cp prisma-engines/target/release/prisma-fmt node_modules/@prisma/sdk/prisma-fmt-linux-nixos