From 646cd1b43e89920bb283dc11f38463204bcac9db Mon Sep 17 00:00:00 2001 From: Siddharth Balyan <52913345+alt-glitch@users.noreply.github.com> Date: Thu, 18 Jun 2026 20:30:08 +0530 Subject: [PATCH] fix(nix): refresh npmDepsHash after the Electron 40.10.2 pin (#47792) (#48457) PR #47792 pinned Electron to an exact 40.10.2 and regenerated the root package-lock.json (dropping @electron/get@5 + @electron-internal/extract-zip, restoring @electron/get@2 + extract-zip@2 + yauzl), but did not refresh the shared npmDepsHash in nix/lib.nix. The hash still described the previous 40.10.3 lockfile, so npmConfigHook fails on every Nix build with "npmDepsHash is out of date" for hermes-tui / hermes-web / hermes-desktop. Regenerate the single shared hash to match the current lockfile. Verified with fetchNpmDeps (authoritative, not prefetch-npm-deps): nix build .#tui.npmDeps -> builds clean nix build .#tui -> Validating consistency -> Installing dependencies -> Finished npmConfigHook (no hash error) --- nix/lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/lib.nix b/nix/lib.nix index dea1d48b4c8..180f00f2ee0 100644 --- a/nix/lib.nix +++ b/nix/lib.nix @@ -21,7 +21,7 @@ let # Single npm deps fetch from the workspace root lockfile. # All workspace packages share this derivation. - npmDepsHash = "sha256-m9cjbjzi4SaFCjODfdrawS5e+1ag+MpRn528/upSNqo="; + npmDepsHash = "sha256-kbjJksq7limRIYqP3DwI+GNgCXkG96tXcsQqmuEedxo="; npmDeps = pkgs.fetchNpmDeps { inherit src;