summaryrefslogtreecommitdiffhomepage
path: root/nix/opencode.nix
diff options
context:
space:
mode:
authorCaleb Norton <[email protected]>2026-03-28 18:39:22 -0500
committerGitHub <[email protected]>2026-03-28 18:39:22 -0500
commitff37d7c2df04573308a200ec6d02e947ff0c50b3 (patch)
tree890b21756ef695890b22368eb9eec58999d03890 /nix/opencode.nix
parent4f96eb239ffa5615bdb87ffbdd64e20904f447a5 (diff)
downloadopencode-ff37d7c2df04573308a200ec6d02e947ff0c50b3.tar.gz
opencode-ff37d7c2df04573308a200ec6d02e947ff0c50b3.zip
fix: nix embedded web-ui support (#19561)
Diffstat (limited to 'nix/opencode.nix')
-rw-r--r--nix/opencode.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/opencode.nix b/nix/opencode.nix
index b7d6f9594..b629d0b55 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
'';