Fix wasm ssh in nix build (#588)

This commit is contained in:
Sandro
2026-07-13 00:18:48 +02:00
committed by GitHub
parent fb73181cba
commit f52c4161cc
+3 -4
View File
@@ -38,9 +38,9 @@ in
buildPhase = ''
runHook preBuild
cp ${headplane-ssh-wasm}/hp_ssh.wasm app/hp_ssh.wasm
cp ${headplane-ssh-wasm}/wasm_exec.js app/wasm_exec.js
pnpm react-router build
cp ${headplane-ssh-wasm}/hp_ssh.wasm public/hp_ssh.wasm
cp ${headplane-ssh-wasm}/wasm_exec.js public/wasm_exec.js
pnpm build
runHook postBuild
'';
@@ -49,7 +49,6 @@ in
mkdir -p $out/{bin,share/headplane}
cp -r build $out/share/headplane/
cp -r drizzle $out/share/headplane/
sed -i "s;$PWD;../..;" $out/share/headplane/build/server/index.js
makeWrapper ${lib.getExe nodejs_24} $out/bin/headplane \
--chdir $out/share/headplane \
--add-flags $out/share/headplane/build/server/index.js