Skip to content

Commit

Permalink
chore: setup shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
divyenduz committed Oct 17, 2023
1 parent 6d8ad68 commit 5830c22
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/sqlite-backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion packages/zoid-fs-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 22 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:

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";
})

0 comments on commit 5830c22

Please sign in to comment.