Repository navigation
fix(nix): override broken opencode 2.2.5 node_modules hash - #136
Conversation
nixpkgs builds opencode with a stale bunInstall output hash after the bun 1.4.4 update, so node_modules fails with a fixed-output mismatch (NixOS/nixpkgs#582673). Override only for 2.2.5 with the hash produced on aarch64-darwin so package updates are not blocked. Co-Authored-By: Claude Code <[email protected]>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
概要
nixpkgs の
opencode2.2.5 はnode_modulesの固定出力ハッシュが壊れており、make check-updateが失敗します。上流 issue: NixOS/nixpkgs#582673 / 修正 PR: NixOS/nixpkgs#582675(未マージ)
変更
aarch64-darwinかつopencode.version == "2.2.5"のときだけ、node_modulesのoutputHashを実測値へ差し替える overlay を追加flake.nix(homeConfigurations 用)とdarwin/default.nix(nix-darwin システム用)の両方に反映検証
opencode-node_modules-2.2.5のビルド成功を確認make check-updateの完走を確認(このコメント時点で実行中)🤖 Generated with Claude Code
Note
Low Risk
Packaging-only, version-gated hash override with no runtime or security behavior changes.
Overview
Adds a temporary nixpkgs overlay so
opencode2.2.5 builds when upstream’s fixed-outputnode_moduleshash is wrong (NixOS/nixpkgs#582673). The override replacesoutputHashwith the value produced under bun 1.4.4, unblockingmake check-updateand related eval/builds.The same workaround is wired in
flake.nix(customOverlayfor Home Manager) anddarwin/default.nix(nix-darwin system overlay). Home Manager applies it only onaarch64-darwinwhen the package is still 2.2.5; the darwin module keys off version alone. Once nixpkgs bumpsopencode, the condition stops matching and the override is skipped.Reviewed by Cursor Bugbot for commit 2af1536. Configure here.
Summary by CodeRabbit