mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
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
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user