-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
31 lines (29 loc) · 829 Bytes
/
Copy pathflake.nix
File metadata and controls
31 lines (29 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "vocabook dev environment with working Prisma engines on NixOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
prisma-utils.url = "github:VanCoding/nix-prisma-utils";
};
outputs =
{ nixpkgs, flake-utils, prisma-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
prisma = prisma-utils.lib.prisma-factory {
inherit pkgs;
hash = "sha256-dgsaGFfvH7xYadygnwN6uJwOo6DwHTo219x7to2+1IM=";
npmLock = ./package-lock.json;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.nodejs_24
];
env = prisma.env;
};
}
);
}