fix(nix): use electron.headers instead of hardcoded headers hash in desktop.nix - #69458
fix(nix): use electron.headers instead of hardcoded headers hash in desktop.nix#69458alt-glitch wants to merge 2 commits into
Conversation
…op.nix Remove hardcoded hash and use electron.headers directly instead. Fixes #61443
૮ >ﻌ< ა ci reviewrunning on a8be142 looks good to me! |
SummaryNine PRs reference or overlap this issue complex. #53202, #61824, and #69458 remove the independently pinned Electron-header fetch in favor of Related pull requests
Duplicates#61824 and #69458 implement the same Suggested consolidationKeep #69458 open with the concrete salvage path of retaining its focused, attributed Complex graphflowchart LR
classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
classDef best stroke-width:3px,stroke:#b45309
classDef target stroke-width:3px,stroke:#4338ca
I61443(["issue #61443 (open)"])
I72095(["issue #72095 (open)"])
subgraph Dup53202 ["PRs duplicating each other"]
P53202["PR #53202 (open)"]
P61824["PR #61824 (open)"]
P69458["PR #69458 (open)"]
end
P69458 -->|best fix| I61443
P69458 -->|best fix| I72095
class I61443 open
class I72095 open
class P53202 open
class P61824 open
class P69458 open
class P53202 best
class P53202 best
class P69458 best
class P69458 best
class P69458 target
click I61443 "https://github.com/NousResearch/hermes-agent/issues/61443"
click I72095 "https://github.com/NousResearch/hermes-agent/issues/72095"
click P53202 "https://github.com/NousResearch/hermes-agent/pull/53202"
click P61824 "https://github.com/NousResearch/hermes-agent/pull/61824"
click P69458 "https://github.com/NousResearch/hermes-agent/pull/69458"
Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label). Cross-PR triage: Reviewed 9 pull requests and 2 issues in this complex. Each diff was read against this issue; Assessment working set: 31 kB of PR diffs, 28 kB of issue/PR text, 15 kB of discussion (21 comments), 18 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
|
Call-graph-assisted review — Nix-only change, so calldiff doesn't apply; reviewed via Replaces the hand-pinned ✅ Looks good
🟡 Duplication / abstraction
🔴 Issues
|
Summary
Salvage of #61824 by @fkz (commit cherry-picked, authorship preserved). Prior art: #53202 by @ak2k contains the identical
electron.headerschange and predates #61824 — credit to both; #53202's separate CI-lane component is superseded by the trigger-only nix CI in #69463 (its offline-build guard scope is covered byscripts/nix-ci.sh build).nix/desktop.nixpinned the Electron node-headers tarball viafetchurlwith a hardcodedsha256. Becauseelectron.versioncomes from nixpkgs, every nixpkgs Electron bump changes the URL and breaks.#desktopwith a fixed-output hash mismatch (#61443). nixpkgs'electronalready exposes the matching headers aselectron.headers, so this deletes the fetchurl entirely and pointsnpm rebuild node-pty --nodedirat it.Verified today: bumping the flake's nixpkgs (2026-04-01 → 2026-07-19) moves Electron 41.0.2 → 41.9.1 and reproduces the hash mismatch on current main; with this change
.#desktopbuilds green on both pins.Closes #61443. Supersedes #61824 and the desktop.nix half of #53202.
Test plan
nix build .#desktopon current flake.lock (Electron 41.0.2) — passesnix build .#desktopwith nixpkgs 241313f4 (Electron 41.9.1) — passes (was: hash mismatch)