diff --git a/packages/sqlite-backend/prisma/schema.prisma b/packages/sqlite-backend/prisma/schema.prisma index 400e3b6..d6c03b2 100644 --- a/packages/sqlite-backend/prisma/schema.prisma +++ b/packages/sqlite-backend/prisma/schema.prisma @@ -1,6 +1,7 @@ // This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema +// With NixOS https://github.com/prisma/prisma/issues/3026 generator client { provider = "prisma-client-js" previewFeatures = ["driverAdapters"] diff --git a/packages/zoid-fs-client/package.json b/packages/zoid-fs-client/package.json index 6525036..4d65706 100644 --- a/packages/zoid-fs-client/package.json +++ b/packages/zoid-fs-client/package.json @@ -4,7 +4,7 @@ "license": "MIT", "type": "module", "scripts": { - "start": "vite-node --watch index.ts /home/divyenduz/Documents/zoid/vfs/1", + "start": "vite-node --watch index.ts /home/divyendusingh/zoid/vfs/1", "test:prepare": "vite-node --watch index.ts /home/div/code/vfs/test-fs --tenant test", "ci:setup-fuse": "vite-node --watch index.ts", "test": "vitest", diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..13be05a --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +{ pkgs ? import {} }: + +let lib = pkgs.lib; + +in pkgs.mkShell (with pkgs; { + buildInputs = [ + nodejs + openssl + fuse + ]; + + shellHook = ''PATH="$PWD/node_modules/.bin:$PATH"''; + + PKG_CONFIG_PATH = "${fuse}/lib/pkgconfig/:$PKG_CONFIG_PATH"; + + PRISMA_MIGRATION_ENGINE_BINARY = "/home/divyendusingh/zoid/prisma-engines/target/release/migration-engine"; + PRISMA_SCHEMA_ENGINE_BINARY = "/home/divyendusingh/zoid/prisma-engines/target/release/schema-engine"; + PRISMA_QUERY_ENGINE_BINARY = "/home/divyendusingh/zoid/prisma-engines/target/release/query-engine"; + PRISMA_QUERY_ENGINE_LIBRARY = "/home/divyendusingh/zoid/prisma-engines/target/release/libquery_engine.node"; + PRISMA_INTROSPECTION_ENGINE_BINARY = "/home/divyendusingh/zoid/prisma-engines/target/release/introspection-engine"; + PRISMA_FMT_BINARY = "/home/divyendusingh/zoid/prisma-engines/target/release/prisma-fmt"; +})