diff --git a/flake.nix b/flake.nix index 6b5c98f..9c31ba6 100644 --- a/flake.nix +++ b/flake.nix @@ -22,15 +22,23 @@ bun nodejs_24 prisma + prisma-engines openssl_3 # needed for prisma # DB deps ephemeralpg postgresql ]; - shellHook = '' + shellHook = with pkgs; '' echo "Welcome to the methylphenidate dev environment!" export NIX_LDFLAGS="''${NIX_LDFLAGS/-rpath $out\/lib /}" + export PRISMA_SCHEMA_ENGINE_BINARY="${prisma-engines}/bin/migration-engine" + export PRISMA_QUERY_ENGINE_BINARY="${prisma-engines}/bin/query-engine" + export PRISMA_QUERY_ENGINE_LIBRARY="${prisma-engines}/lib/libquery_engine.node" + export PRISMA_INTROSPECTION_ENGINE_BINARY="${prisma-engines}/bin/introspection-engine" + export PRISMA_FMT_BINARY="${prisma-engines}/bin/prisma-fmt" + export PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING="1"; + ''; }; };