From ff37d7c2df04573308a200ec6d02e947ff0c50b3 Mon Sep 17 00:00:00 2001 From: Caleb Norton Date: Sat, 28 Mar 2026 18:39:22 -0500 Subject: [PATCH] fix: nix embedded web-ui support (#19561) --- nix/node_modules.nix | 1 + nix/opencode.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/nix/node_modules.nix b/nix/node_modules.nix index 6b59584700..e10e85d2fe 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 b7d6f95947..b629d0b554 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 '';