Skip to content
Discussion options

You must be logged in to vote

I think I got it fixed now. Specifically setting the environment variables breaks it, you just need to copy the files to the correct location. Full instructions for future reference:

setup-nix.sh

#! /usr/bin/env nix-shell
#! nix-shell -i bash -p pkg-config zlib openssl nodejs cargo

#yarn # 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-nix…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@mohe2015
Comment options

Comment options

You must be logged in to vote
2 replies
@htkarabulut
Comment options

@ivandimitrov8080
Comment options

Answer selected by mohe2015
Comment options

You must be logged in to vote
6 replies
@ymolists
Comment options

@xaiyadev
Comment options

@taciturnaxolotl
Comment options

@xaiyadev
Comment options

@paullotz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants