Nix build fails on aarch64-linux and x86_64-darwin: missing nodeModules #6321

Closed
opened 2026-02-16 18:03:05 -05:00 by yindo · 0 comments
Owner

Originally created by @ricardo-valero on GitHub (Jan 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When building opencode using Nix, I am getting errors on

aarch64-linux:

error: attribute 'aarch64-linux' missing
  at /home/runner/work/opencode/opencode/flake.nix:49:11:
      48|         if builtins.isAttrs hashesData.nodeModules then
      49|           hashesData.nodeModules.${system}

x86_64-darwin:

error: attribute 'x86_64-darwin' missing
  at /Users/runner/work/opencode/opencode/flake.nix:49:11:
      48|         if builtins.isAttrs hashesData.nodeModules then
      49|           hashesData.nodeModules.${system}

nix/hashes.json only contains hashes for x86_64-linux and aarch64-darwin, missing entries for aarch64-linux and x86_64-darwin.

Suggested Fix
Add placeholder hashes for the missing systems in nix/hashes.json, then run the hash update workflow to compute the correct values.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @ricardo-valero on GitHub (Jan 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When building opencode using Nix, I am getting errors on aarch64-linux: ``` error: attribute 'aarch64-linux' missing at /home/runner/work/opencode/opencode/flake.nix:49:11: 48| if builtins.isAttrs hashesData.nodeModules then 49| hashesData.nodeModules.${system} ``` x86_64-darwin: ``` error: attribute 'x86_64-darwin' missing at /Users/runner/work/opencode/opencode/flake.nix:49:11: 48| if builtins.isAttrs hashesData.nodeModules then 49| hashesData.nodeModules.${system} ``` `nix/hashes.json` only contains hashes for x86_64-linux and aarch64-darwin, missing entries for aarch64-linux and x86_64-darwin. Suggested Fix Add placeholder hashes for the missing systems in nix/hashes.json, then run the hash update workflow to compute the correct values. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugnix labels 2026-02-16 18:03:05 -05:00
yindo closed this issue 2026-02-16 18:03:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6321