opencode
opencode copied to clipboard
[BUG] 1.1.23 Nix hash mismatch error on NixOS
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
- Attempt to
sudo nixos-rebuild switchwith flake input:opencode = { url = "github:anomalyco/opencode/7443b9929556d5c86a89df3df95af720bd82cd80"; inputs.nixpkgs.follows = "nixpkgs"; }; - Watch it fail.
Screenshot and/or share link
No response
Operating System
NixOS 26.05 (nixpkgs/nixos-unstable:1412caf7bf9e660f2f962917c14b1ea1c3bc695e)
Terminal
N/A
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.