Skip to content

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

@ricardo-valero

Description

@ricardo-valero

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions