From 481bb1bf622d0cd30eab3dd76601a9f1da2bd7d3 Mon Sep 17 00:00:00 2001 From: JackJin <1037461232@qq.com> Date: Thu, 9 Jul 2026 23:18:35 +0800 Subject: [PATCH] fix(desktop): bump electron node-headers sha256 to match pinned electron.version electronHeaders fetches from a URL templated off electron.version, but the sha256 was hardcoded to a prior electron release. nixpkgs-nixos-unstable now resolves electron to 41.9.1, so the fixed-output derivation hash-mismatches and `nix build .#desktop` fails. Fixes #61443 --- nix/desktop.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/desktop.nix b/nix/desktop.nix index a266accaaa83..03b49550db16 100644 --- a/nix/desktop.nix +++ b/nix/desktop.nix @@ -28,7 +28,10 @@ let electronHeaders = pkgs.fetchurl { url = "https://artifacts.electronjs.org/headers/dist/v${electron.version}/node-v${electron.version}-headers.tar.gz"; - sha256 = "sha256-zi/QMwRZ0+FwE9XTE+DiSIeJXAwxmLKEaBWD5W3pMOI="; + # Pinned to the current nixpkgs electron (41.9.1). This hash tracks + # electron.version and must be bumped alongside every nixpkgs electron + # bump — see #61443. + sha256 = "sha256-zOl8rx6woWh7aeRUOlkTMviKc/EAQQX6nr/MxAx1ZPI="; }; # node-pty ships no Electron-tagged prebuild we can trust to match this