-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add NixOS development flake (#120)
- Loading branch information
1 parent
8fbfa18
commit 06f4ea3
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let pkgs = import nixpkgs { inherit system; }; | ||
in { | ||
devShell = pkgs.mkShell { | ||
buildInputs = with pkgs; [ nodejs-18_x yarn nodePackages.prisma ]; | ||
shellHook = with pkgs; '' | ||
export PRISMA_MIGRATION_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" | ||
''; | ||
}; | ||
}); | ||
} |