Skip to content

Commit 015a6e7

Browse files
committed
use prisma.env everywhere
1 parent c6cbbee commit 015a6e7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
yarn-v1
7373
yarn-berry
7474
];
75-
shellHook = prisma.shellHook;
75+
env = prisma.env;
7676
};
7777
}
7878
)

tests.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ let
3838
in
3939
writeShellApplication {
4040
name = "test-npm";
41+
runtimeInputs = [ nodejs ];
42+
runtimeEnv = prisma.env;
4143
text = ''
4244
echo "testing npm"
43-
${prisma.shellHook}
4445
cd npm
45-
${nodejs}/bin/npm ci
46+
npm ci
4647
./node_modules/.bin/prisma generate
4748
'';
4849
};
@@ -54,11 +55,12 @@ let
5455
in
5556
writeShellApplication {
5657
name = "test-pnpm";
58+
runtimeInputs = [ pnpm ];
59+
runtimeEnv = prisma.env;
5760
text = ''
5861
echo "testing pnpm"
59-
${prisma.shellHook}
6062
cd pnpm
61-
${pnpm}/bin/pnpm install
63+
pnpm install
6264
./node_modules/.bin/prisma generate
6365
'';
6466
};
@@ -71,9 +73,9 @@ let
7173
writeShellApplication {
7274
name = "test-bun";
7375
runtimeInputs = [ bun ];
76+
runtimeEnv = prisma.env;
7477
text = ''
7578
echo "testing bun"
76-
${prisma.shellHook}
7779
cd bun
7880
bun install
7981
bunx prisma generate
@@ -88,9 +90,9 @@ let
8890
writeShellApplication {
8991
name = "test-yarn-v1";
9092
runtimeInputs = [ yarn-v1 ];
93+
runtimeEnv = prisma.env;
9194
text = ''
9295
echo "testing yarn v1"
93-
${prisma.shellHook}
9496
cd yarn-v1
9597
yarn-v1 install
9698
yarn-v1 prisma generate
@@ -105,9 +107,9 @@ let
105107
writeShellApplication {
106108
name = "test-yarn-berry";
107109
runtimeInputs = [ yarn-berry ];
110+
runtimeEnv = prisma.env;
108111
text = ''
109112
echo "testing yarn berry"
110-
${prisma.shellHook}
111113
cd yarn-berry
112114
yarn-berry install
113115
yarn-berry prisma generate

0 commit comments

Comments
 (0)