opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] 1.1.23 Nix hash mismatch error on NixOS

Open Algorithon opened this issue 10 months ago • 1 comments

Description

When attempting to build 1.1.23 from the Flake on NixOS (nixpkgs/nixos-unstable commit: 1412caf7bf9e660f2f962917c14b1ea1c3bc695e), it fails because:

error: hash mismatch in fixed-output derivation '/nix/store/q2rfy711cw22yf5mmp1awas599nkbrkp-opencode-node_modules-1.1.23.drv': specified: sha256-4ndHIlS9t1ynRdFszJ1nvcu3YhunhuOc7jcuHI1FbnM= got: sha256-Fl1BdjNSg19LJVSgDMiBX8JuTaGlL2I5T+rqLfjSeO4=

Plugins

N/A

OpenCode version

1.1.23

Steps to reproduce

  1. Attempt to sudo nixos-rebuild switch with flake input: opencode = { url = "github:anomalyco/opencode/7443b9929556d5c86a89df3df95af720bd82cd80"; inputs.nixpkgs.follows = "nixpkgs"; };
  2. Watch it fail.

Screenshot and/or share link

No response

Operating System

NixOS 26.05 (nixpkgs/nixos-unstable:1412caf7bf9e660f2f962917c14b1ea1c3bc695e)

Terminal

N/A

Algorithon avatar Jan 15 '26 23:01 Algorithon

This issue might be a duplicate of existing issues. Please check:

  • #7344: Nix package: hash mismatch in node_modules fixed-output derivation
  • #4498: Hash mismatch when using opencode flake.nix
  • #8742: Nix build fails on aarch64-linux and x86_64-darwin: missing nodeModules

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 15 '26 23:01 github-actions[bot]