about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/qq
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-01-16 10:44:36 +0800
committerGitHub <noreply@github.com>2023-01-16 10:44:36 +0800
commit33ffe3d5d9dcd32a134ba173da990cfeca03375c (patch)
treee0522d7288adbd8f5d43225bb62e0a947c6d5a7f /pkgs/applications/networking/instant-messengers/qq
parent2b91591ea4f7cab32a80d2b896922da659934f68 (diff)
parent4f8214adce7bcafa1e11d3021a03b115b9cdf914 (diff)
Merge pull request #210732 from LostAttractor/inputMethod
qq: fix input-method not work
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/qq')
-rw-r--r--pkgs/applications/networking/instant-messengers/qq/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/qq/default.nix b/pkgs/applications/networking/instant-messengers/qq/default.nix
index b7b77742ccbe5..ac5c075e40aa8 100644
--- a/pkgs/applications/networking/instant-messengers/qq/default.nix
+++ b/pkgs/applications/networking/instant-messengers/qq/default.nix
@@ -17,6 +17,7 @@
 , at-spi2-core
 , autoPatchelfHook
 , wrapGAppsHook
+, makeWrapper
 }:
 
 let
@@ -42,6 +43,7 @@ stdenv.mkDerivation {
   nativeBuildInputs = [
     autoPatchelfHook
     wrapGAppsHook
+    makeWrapper
     dpkg
   ];
 
@@ -71,7 +73,9 @@ stdenv.mkDerivation {
     substituteInPlace $out/share/applications/qq.desktop \
       --replace "/opt/QQ/qq" "$out/bin/qq" \
       --replace "/usr/share" "$out/share"
-    ln -s $out/opt/QQ/qq $out/bin/qq
+    makeWrapper $out/opt/QQ/qq $out/bin/qq \
+      --argv0 "qq" \
+      --prefix GTK_IM_MODULE_FILE : "/run/current-system/sw/etc/gtk-3.0/immodules.cache"
 
     runHook postInstall
   '';