|
2 | 2 | description = "CourseMate"; |
3 | 3 | inputs = { |
4 | 4 | nixpkgs.url = "github:NixOS/nixpkgs/release-24.11"; |
5 | | - # prisma v6 is only out on unstable. can be removed when 25.05 channel is released |
6 | | - unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
| 5 | + # prisma v6 is only out on unstable uncomment this on updating prisma to v6. can be removed when 25.05 channel is released |
| 6 | + # unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
7 | 7 |
|
8 | 8 | flake-utils.url = "github:numtide/flake-utils"; |
9 | 9 | fenix = { |
|
12 | 12 | }; |
13 | 13 | }; |
14 | 14 |
|
15 | | - outputs = { nixpkgs, unstable, flake-utils, fenix, ... }: |
| 15 | + outputs = { nixpkgs, flake-utils, fenix, /* unstable, */ ... }: |
16 | 16 | flake-utils.lib.eachDefaultSystem (system: |
17 | 17 | let |
18 | 18 | pkgs = nixpkgs.legacyPackages.${system}; |
19 | | - unstable-pkgs = unstable.legacyPackages.${system}; |
| 19 | + # unstable-pkgs = unstable.legacyPackages.${system}; |
20 | 20 | rust-toolchain = import ./nix/rust-toolchain.nix { inherit fenix system; }; |
21 | 21 |
|
22 | 22 | common = { |
|
26 | 26 | biome |
27 | 27 | lefthook |
28 | 28 | dotenv-cli |
29 | | - unstable-pkgs.prisma |
| 29 | + prisma |
| 30 | + prisma-engines |
30 | 31 | ]; |
31 | 32 |
|
32 | | - shellHook = '' |
| 33 | + shellHook = with pkgs; '' |
33 | 34 | # requird by prisma |
34 | | - export PRISMA_QUERY_ENGINE_BINARY="${unstable-pkgs.prisma-engines}/bin/query-engine"; |
35 | | - export PRISMA_QUERY_ENGINE_LIBRARY="${unstable-pkgs.prisma-engines}/lib/libquery_engine.node"; |
36 | | - export PRISMA_INTROSPECTION_ENGINE_BINARY="${unstable-pkgs.prisma-engines}/bin/introspection-engine"; |
37 | | - export PRISMA_FMT_BINARY="${unstable-pkgs.prisma-engines}/bin/prisma-fmt"; |
| 35 | + export PRISMA_QUERY_ENGINE_BINARY="${prisma-engines}/bin/query-engine"; |
| 36 | + export PRISMA_QUERY_ENGINE_LIBRARY="${prisma-engines}/lib/libquery_engine.node"; |
| 37 | + export PRISMA_INTROSPECTION_ENGINE_BINARY="${prisma-engines}/bin/introspection-engine"; |
| 38 | + export PRISMA_FMT_BINARY="${prisma-engines}/bin/prisma-fmt"; |
38 | 39 | ''; |
39 | 40 | }; |
40 | 41 | in |
|
0 commit comments