diff --git a/nix/node_modules.nix b/nix/node_modules.nix index 6c188c07cf7..f380710f86f 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 '';