Skip to content

Commit

Permalink
added shell.nix + bump prisma to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Padraic-O-Mhuiris committed Jan 5, 2021
1 parent eaf6fc0 commit 445e9a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@oasisdex/transactions": "^0.0.16",
"@oasisdex/utils": "^0.0.6",
"@oasisdex/web3-context": "^0.0.9",
"@prisma/client": "^2.0.0-beta.6",
"@prisma/client": "^2.14.0",
"@types/ethereumjs-tx": "^2.0.0",
"@types/mixpanel-browser": "^2.23.1",
"@types/morgan": "^1.9.0",
Expand Down Expand Up @@ -138,7 +138,7 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@prisma/cli": "^2.0.0-beta.6",
"@prisma/cli": "^2.14.0",
"@storybook/react": "^5.3.19",
"@types/bn.js": "^4.11.1",
"@types/body-parser": "^1.19.0",
Expand Down
13 changes: 13 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> { } }:

with pkgs;

mkShell {
buildInputs = [ ];
shellHook = ''
export PRISMA_MIGRATION_ENGINE_BINARY="$HOME/code/prisma/target/release/migration-engine"
export PRISMA_QUERY_ENGINE_BINARY="$HOME/code/prisma/target/release/query-engine"
export PRISMA_INTROSPECTION_ENGINE_BINARY="$HOME/code/prisma/target/release/introspection-engine"
export PRISMA_FMT_BINARY="$HOME/code/prisma/target/release/migration-engine"
'';
}

0 comments on commit 445e9a6

Please sign in to comment.