+1
-1
nix/client-modules.nix
+1
-1
nix/client-modules.nix
+10
-2
nix/client.nix
+10
-2
nix/client.nix
···
1
{
2
+
lib,
3
stdenv,
4
makeBinaryWrapper,
5
bun,
···
29
'';
30
buildPhase = ''
31
runHook preBuild
32
+
bun --prefer-offline run build
33
runHook postBuild
34
'';
35
installPhase = ''
36
runHook preInstall
37
+
38
+
mkdir -p $out/bin
39
cp -R ./build/* $out
40
+
cp -R ./node_modules $out
41
+
42
+
makeBinaryWrapper ${bun}/bin/bun $out/bin/website \
43
+
--prefix PATH : ${lib.makeBinPath [ bun ]} \
44
+
--add-flags "run --bun --no-install --cwd $out start"
45
+
46
runHook postInstall
47
'';
48
}