Created
November 9, 2024 17:15
-
-
Save cjdell/cbd72ba3bfa48c2012ee806d76e6f95e to your computer and use it in GitHub Desktop.
Prisma Flake
This file contains hidden or 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
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
inputs.prisma-utils.url = "github:VanCoding/nix-prisma-utils"; | |
outputs = | |
{ nixpkgs, prisma-utils, ... }: | |
let | |
pkgs = import nixpkgs { system = "x86_64-linux"; }; | |
prisma = | |
(prisma-utils.lib.prisma-factory { | |
nixpkgs = pkgs; | |
prisma-fmt-hash = "sha256-iZuomC/KaLF0fQy6RVHwk2qq4DRaG3xj+sWmtLofiMU="; # just copy these hashes for now, and then change them when nix complains about the mismatch | |
query-engine-hash = "sha256-Pl/YpYu326qqpbVfczM5RxB8iWXZlewG9vToqzSPIQo="; | |
libquery-engine-hash = "sha256-ETwMIJMjMgZmjH6QGD7GVwYYlyx9mo2ydEeunFViCjQ="; | |
schema-engine-hash = "sha256-rzzzPHOpUM3GJvkhU08lQ7rNspdq3RKxMRRW9YZtvhU="; | |
}).fromNpmLock | |
./package-lock.json; # <--- path to our package-lock.json file that contains the version of prisma-engines | |
in | |
{ | |
devShells.x86_64-linux.default = pkgs.mkShell { | |
shellHook = prisma.shellHook; | |
buildInputs = with pkgs; [ | |
nodejs_22 | |
]; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment