Skip to content

feat: add OpenCode v2 package lane - #54

Merged
ErikBPF merged 1 commit into
mainfrom
feat/opencode-v2
Oct 11, 2026
Merged

ErikBPF merged 1 commit into
mainfrom
feat/opencode-v2

Conversation

@ErikBPF

@ErikBPF ErikBPF commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Package the official OpenCode v2 Linux x64 npm release as packages.opencode-v2 and expose homeManagerModules.withPackageV2 so a host can move onto v2 without dropping the v1 source build other consumers still use.

v2 ships a self-contained Bun binary; it is fetched and auto-patchelf'd rather than built from source. installCheck runs --version with a writable HOME because v2 logs under $HOME/.local/share.

Part of the desktop-nixos OpenCode v2 default migration (opencode-flake + desktop-nixos).

Package the official v2 Linux x64 npm release as packages.opencode-v2 with
homeManagerModules.withPackageV2, so consumers can move a host onto v2
without dropping the v1 source build other hosts still use.

v2 ships a self-contained Bun binary; fetch and autoPatchelf it rather than
build from source. installCheck needs a writable HOME because v2 logs under
$HOME/.local/share.
@ErikBPF
ErikBPF merged commit 2a26730 into main Oct 11, 2026
7 checks passed
@ErikBPF
ErikBPF deleted the feat/opencode-v2 branch October 11, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant