about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/qq
diff options
context:
space:
mode:
authorChaosAttractor <lostattractor@gmail.com>2023-12-05 20:41:14 +0800
committerChaosAttractor <lostattractor@gmail.com>2023-12-06 15:49:37 +0800
commit7e3940735af718435c7f34cbc1f0f9c0105e8159 (patch)
tree1237c672209ef663c9fc0cbf1d1b073ca5a18991 /pkgs/applications/networking/instant-messengers/qq
parent4abe534795daece815600969c867fd9521099329 (diff)
qq: add libGL to runtime path
`libEGL.so.1` is missing. Electron is using it by dlopen.
This causes electron fallback to software rendering in X11 and crash directly under wayland.
Beacuse it's a unfree software from a debian package. the path to `libEGL.so.1` is hard-coded so we should just wrapping it.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/qq')
-rw-r--r--pkgs/applications/networking/instant-messengers/qq/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/qq/default.nix b/pkgs/applications/networking/instant-messengers/qq/default.nix
index b372d708eb754..ea7f6e53fc7dc 100644
--- a/pkgs/applications/networking/instant-messengers/qq/default.nix
+++ b/pkgs/applications/networking/instant-messengers/qq/default.nix
@@ -11,6 +11,7 @@
 , libgcrypt
 , libkrb5
 , mesa # for libgbm
+, libGL
 , nss
 , xorg
 , systemd
@@ -75,6 +76,7 @@ stdenv.mkDerivation {
       --replace "/opt/QQ/qq" "$out/bin/qq" \
       --replace "/usr/share" "$out/share"
     makeWrapper $out/opt/QQ/qq $out/bin/qq \
+      --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
       --prefix PATH : "${lib.makeBinPath [ gjs ]}" \
       --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"