hermes-agent/nix
Siddharth Balyan 7230fcb7f2
revert(nix): drop the cp patchPhase workaround from #41867 (#42151)
#41867 replaced mkNpmPassthru's patchPhase with
`cp $npmDeps/package-lock.json package-lock.json`, on the theory that
prefetch-npm-deps strips advisory fields (engines/os/cpu) from the cache
lockfile. That diagnosis was wrong.

prefetch-npm-deps copies the lockfile into the cache *verbatim*
(prefetch-npm-deps/src/main.rs reads it and writes it unchanged). Building the
cache fresh from the current root lockfile yields exactly the pinned
npmDepsHash, and that cache's package-lock.json is byte-identical to the source
(740 "engines" blocks on each side). With the hash correct, npmConfigHook's
consistency check passes on its own — verified by building .#tui and .#default
green with this (original) patchPhase.

So the cp was unnecessary, and worse: it bypasses the consistency check
wholesale, silently masking a genuinely stale npmDepsHash (a lockfile that
changed without its hash being refreshed) instead of failing loudly. The
original patchPhase keeps the check meaningful while still handling the one real
cosmetic difference it was written for (trailing newlines); stale-hash drift is
caught by the npmDepsHash itself plus the auto-fix workflow.

Keeps the fix-lockfiles real-build verification and the nix-lockfile-fix.yml
file-path fix from #41867 — only the patchPhase cp is reverted.
2026-06-08 20:29:41 +05:30
..
checks.nix fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (#38383) 2026-06-03 12:00:27 -07:00
configMergeScript.nix feat: nix flake — uv2nix build, NixOS module, persistent container mode (#20) 2026-03-26 01:08:02 +05:30
desktop.nix fix(node/nix): consolidate workspace lockfile + update all consumers 2026-06-02 20:28:18 -04:00
devShell.nix fix(node/nix): consolidate workspace lockfile + update all consumers 2026-06-02 20:28:18 -04:00
hermes-agent.nix fix(packaging): ship locales/ i18n catalogs in wheel, sdist, and Nix (#38383) 2026-06-03 12:00:27 -07:00
lib.nix revert(nix): drop the cp patchPhase workaround from #41867 (#42151) 2026-06-08 20:29:41 +05:30
nixosModules.nix fix(nix): make config.yaml group-writable under addToSystemPackages (#41940) 2026-06-08 20:10:47 +05:30
overlays.nix fix(banner): show correct update status on nix-built hermes (#17550) 2026-04-30 07:03:00 +05:30
packages.nix fix(node/nix): consolidate workspace lockfile + update all consumers 2026-06-02 20:28:18 -04:00
python.nix feat(nix): declarative plugin installation for NixOS module (#15953) 2026-04-28 00:18:32 +05:30
tui.nix fix(node/nix): consolidate workspace lockfile + update all consumers 2026-06-02 20:28:18 -04:00
web.nix fix(node/nix): consolidate workspace lockfile + update all consumers 2026-06-02 20:28:18 -04:00