chromium: add libglvnd to rpath
This should fix issues like - https://github.com/NixOS/nixpkgs/pull/249853 - https://github.com/NixOS/nixpkgs/issues/268490 for all chromium and all electron apps under Wayland.
This commit is contained in:
parent
85f1ba3e51
commit
c475ac3248
@ -47,6 +47,7 @@
|
|||||||
, glibc # gconv + locale
|
, glibc # gconv + locale
|
||||||
# postFixup:
|
# postFixup:
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
|
, libglvnd
|
||||||
|
|
||||||
# Package customization:
|
# Package customization:
|
||||||
, cupsSupport ? true, cups ? null
|
, cupsSupport ? true, cups ? null
|
||||||
@ -479,7 +480,7 @@ let
|
|||||||
# libpci (from pciutils) is needed by dlopen in angle/src/gpu_info_util/SystemInfo_libpci.cpp
|
# libpci (from pciutils) is needed by dlopen in angle/src/gpu_info_util/SystemInfo_libpci.cpp
|
||||||
chromiumBinary="$libExecPath/$packageName"
|
chromiumBinary="$libExecPath/$packageName"
|
||||||
origRpath="$(patchelf --print-rpath "$chromiumBinary")"
|
origRpath="$(patchelf --print-rpath "$chromiumBinary")"
|
||||||
patchelf --set-rpath "${lib.makeLibraryPath [ libGL vulkan-loader pciutils ]}:$origRpath" "$chromiumBinary"
|
patchelf --set-rpath "${lib.makeLibraryPath [ libGL libglvnd vulkan-loader pciutils ]}:$origRpath" "$chromiumBinary"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
Loading…
Reference in New Issue
Block a user