Skip to content

Commit b7843c6

Browse files
committed
remove unstable, because we not prisma v6 yet
1 parent e1c6a0c commit b7843c6

File tree

2 files changed

+12
-28
lines changed

2 files changed

+12
-28
lines changed

flake.lock

Lines changed: 1 addition & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
description = "CourseMate";
33
inputs = {
44
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";
77

88
flake-utils.url = "github:numtide/flake-utils";
99
fenix = {
@@ -12,11 +12,11 @@
1212
};
1313
};
1414

15-
outputs = { nixpkgs, unstable, flake-utils, fenix, ... }:
15+
outputs = { nixpkgs, flake-utils, fenix, /* unstable, */ ... }:
1616
flake-utils.lib.eachDefaultSystem (system:
1717
let
1818
pkgs = nixpkgs.legacyPackages.${system};
19-
unstable-pkgs = unstable.legacyPackages.${system};
19+
# unstable-pkgs = unstable.legacyPackages.${system};
2020
rust-toolchain = import ./nix/rust-toolchain.nix { inherit fenix system; };
2121

2222
common = {
@@ -26,15 +26,16 @@
2626
biome
2727
lefthook
2828
dotenv-cli
29-
unstable-pkgs.prisma
29+
prisma
30+
prisma-engines
3031
];
3132

32-
shellHook = ''
33+
shellHook = with pkgs; ''
3334
# 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";
3839
'';
3940
};
4041
in

0 commit comments

Comments
 (0)