Repository navigation
Closed
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
nix build github:NixOS/nixpkgs/f9887a8a434bfba06e20dfc77bc8e0628266af84#opencode(currentnixpkgs-unstable, opencode 2.2.5)- The fixed-output derivation
opencode-node_modules-2.2.5fails with a hash mismatch.
Can Hydra reproduce this build failure?
I don't know, but there is no cached opencode-2.2.5 on cache.nixos.org for aarch64-darwin, aarch64-linux or x86_64-linux, while 2.2.1 is cached.
Link to Hydra build job
No response
Relevant log output
error: hash mismatch in fixed-output derivation '/nix/store/binknfnrq9y1fp0sswd0sk8xla77ff4f-opencode-node_modules-2.2.5.drv':
specified: sha256-xfOVcw1+waLVNhFDwzOtzxrUSQEogvn88YomydOlhwc=
got: sha256-dIveiaiPFGSItwLyeMuPDxTE9gpvvnlTCB/+nG24qCc=
error: Cannot build '/nix/store/z4fx228m0vsh1kbj7jf51wlfspbgcjwc-opencode-2.2.5.drv'.
Reason: 1 dependency failed.
Additional context
The outputHash was set in #581607 (opencode 2.2.1 -> 2.2.5, merged 2 Nov 08:51 UTC). Possibly related: node_modules is produced by bun install, and #577354 (bun 1.4.2 -> 1.4.4) was merged a few hours later (2 Nov 11:34 UTC), so the hash may have been computed with the previous bun. I haven't verified that.
The derivation uses a single hash for all platforms (bun install --os=*), so updating outputHash to the "got" value above may be enough, but I could only test on aarch64-darwin.
System metadata
- system:
"aarch64-darwin" - host os:
Darwin 27.2.0, macOS 27.2 - multi-user?:
yes - sandbox:
no - version:
nix-env (Determinate Nix 3.22.3) 2.35.2
Notify maintainers
@delafthi @DuskyElf @graham33 @xiaoxiangmoe
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Fidel Yin, skynet, John Rey Rabosa, KHTangent, Mat, Jeremy Rempel, Gerardo Doro, Pablo Hörtner, Kacper Wojciuch, Ole and 2 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
GaetanLepage commentedon Nov 3, 2026
I opened #582675, but when trying to repro, I didn't get the same hash as you:
Sejder commentedon Nov 3, 2026
Reproduced on x86_64-linux (Nix 2.34.9, bun 1.4.4) at f9887a8:
error: hash mismatch in fixed-output derivation '/nix/store/kfdz406fa44wmh8bgiq2d7nnbxa19f0f-opencode-node_modules-2.2.5.drv':
specified: sha256-xfOVcw1+waLVNhFDwzOtzxrUSQEogvn88YomydOlhwc=
got: sha256-prx9dX7kUvs/E3zopkaPk5LXh3xJAy5sZeum/W8L7cA=
Pin opencode's node_modules hash per platform and update home-manager…
fix(nix): override broken opencode 2.2.5 node_modules hash (#136)
fix(ai): override stale opencode node_modules hash
fix: override opencode 2.2.5's broken node_modules hash on Linux (#985)
fix: override opencode 2.2.5's broken node_modules hash on Linux (#985)
darwin: remove opencode, drop hash overlay
opencode: correct the node_modules hash nixos-unstable ships
fix(opencode): normalize bun dependencies (#420)