Bug Description
The hermes-tui derivation (in nix/tui.nix) has a stale npmDepsHash. When building on a clean store, the build fails with:
ERROR: npmDepsHash is out of date
The package-lock.json in src is not the same as the in /nix/store/...-npm-deps.
This is the same class of bug as reported in #15272 (and #15244), but for hermes-tui rather than hermes-web.
Root Cause
In the commit that introduced the regression (merged around 2026-04-24 14:26–14:48 UTC), ui-tui/package-lock.json was updated but the corresponding npmDepsHash in nix/tui.nix was not refreshed.
The stale hash in nix/tui.nix line 7:
hash = "sha256-RU4qSHgJPMyfRSEJDzkG4+MReDZDc6QbTD2wisa5QE0=";
The lockfile it should match corresponds to:
sha256-/lL0IXurF4WlyFYVVwDI0Btcx0uChHdmKQ8ZW3NQf5E=
Steps to Reproduce
On a clean nix store (or any environment without cached hermes-tui artifacts):
nix build github:NousResearch/hermes-agent#tui
# or
nix flake check
Both fail with the hash mismatch error above.
Expected Behavior
hermes-tui builds successfully on main.
Actual Behavior
Build fails during npmConfigHook consistency check between package-lock.json and the prefetched npm deps.
Affected Component
nix/tui.nix — npmDepsHash value
ui-tui/package-lock.json — updated without corresponding hash bump
Proposed Fix
Update nix/tui.nix line 7 from:
hash = "sha256-RU4qSHgJPMyfRSEJDzkG4+MReDZDc6QbTD2wisa5QE0=";
to:
hash = "sha256-/lL0IXurF4WlyFYVVwDI0Btcx0uChHdmKQ8ZW3NQf5E=";
This is the same remediation as suggested in #15272 for hermes-web.
Related Issues
Bug Description
The
hermes-tuiderivation (innix/tui.nix) has a stalenpmDepsHash. When building on a clean store, the build fails with:This is the same class of bug as reported in #15272 (and #15244), but for
hermes-tuirather thanhermes-web.Root Cause
In the commit that introduced the regression (merged around 2026-04-24 14:26–14:48 UTC),
ui-tui/package-lock.jsonwas updated but the correspondingnpmDepsHashinnix/tui.nixwas not refreshed.The stale hash in
nix/tui.nixline 7:The lockfile it should match corresponds to:
Steps to Reproduce
On a clean nix store (or any environment without cached
hermes-tuiartifacts):nix build github:NousResearch/hermes-agent#tui # or nix flake checkBoth fail with the hash mismatch error above.
Expected Behavior
hermes-tuibuilds successfully onmain.Actual Behavior
Build fails during
npmConfigHookconsistency check betweenpackage-lock.jsonand the prefetched npm deps.Affected Component
nix/tui.nix—npmDepsHashvalueui-tui/package-lock.json— updated without corresponding hash bumpProposed Fix
Update
nix/tui.nixline 7 from:to:
This is the same remediation as suggested in #15272 for
hermes-web.Related Issues