From b3041dc18afe5078fc99feeb7c2c3384447e809a Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:17:03 +0200 Subject: [PATCH] electron_44-bin: fix build electron 44+ no longer ships libGLESv2 / libEGL, so we no longer need to patchelf it. chromium statically links against libGL / vulkan-loader. See Breaking Changes in https://github.com/electron/electron/releases/tag/v44.0.0 --- pkgs/development/tools/electron/binary/generic.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/electron/binary/generic.nix b/pkgs/development/tools/electron/binary/generic.nix index 292944229862..48825be4f3e7 100644 --- a/pkgs/development/tools/electron/binary/generic.nix +++ b/pkgs/development/tools/electron/binary/generic.nix @@ -168,6 +168,12 @@ let $out/libexec/electron/electron \ $out/libexec/electron/chrome_crashpad_handler + # replace bundled vulkan-loader + rm "$out/libexec/electron/libvulkan.so.1" + ln -s -t "$out/libexec/electron" "${lib.getLib vulkan-loader}/lib/libvulkan.so.1" + + '' + + lib.optionalString (lib.versionOlder version "44") '' # patch libANGLE patchelf \ --set-rpath "${ @@ -178,10 +184,6 @@ let ] }" \ $out/libexec/electron/lib*GL* - - # replace bundled vulkan-loader - rm "$out/libexec/electron/libvulkan.so.1" - ln -s -t "$out/libexec/electron" "${lib.getLib vulkan-loader}/lib/libvulkan.so.1" ''; passthru.dist = finalAttrs.finalPackage + "/libexec/electron";