Skip to content

The open source coding agent.

TypeScript

fix: nix embedded web-ui support (#19561)

Caleb Nortonff37d7c2df04
diff --git a/nix/node_modules.nix b/nix/node_modules.nix
index 6b595847009..e10e85d2fe4 100644
--- a/nix/node_modules.nix
+++ b/nix/node_modules.nix
@@ -54,6 +54,7 @@ stdenvNoCC.mkDerivation {
--filter '!./' \
--filter './packages/opencode' \
--filter './packages/desktop' \
+ --filter './packages/app' \
--frozen-lockfile \
--ignore-scripts \
--no-progress
diff --git a/nix/opencode.nix b/nix/opencode.nix
index b7d6f95947c..b629d0b5547 100644
--- a/nix/opencode.nix
+++ b/nix/opencode.nix
@@ -3,6 +3,7 @@
stdenvNoCC,
callPackage,
bun,
+ nodejs,
sysctl,
makeBinaryWrapper,
models-dev,
@@ -19,6 +20,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
nativeBuildInputs = [
bun
+ nodejs # for patchShebangs node_modules
installShellFiles
makeBinaryWrapper
models-dev
@@ -29,6 +31,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook preConfigure
cp -R ${finalAttrs.node_modules}/. .
+ patchShebangs node_modules
+ patchShebangs packages/*/node_modules
runHook postConfigure
'';