summary refs log tree commit diff
path: root/pkgs/tools/inputmethods
diff options
context:
space:
mode:
authoroxalica <oxalicc@pm.me>2019-11-12 14:29:10 +0800
committeroxalica <oxalicc@pm.me>2019-11-13 13:24:21 +0800
commit05c94e3acda49e206bde32ec28df5ed57872c4cb (patch)
tree637766d4d6bc647f386327031387ad6d71ec9bfd /pkgs/tools/inputmethods
parent01429fc2ab40f8ca80a7ba5a0ad506e557156693 (diff)
downloadnixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar.gz
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar.bz2
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar.lz
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar.xz
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.tar.zst
nixpkgs-05c94e3acda49e206bde32ec28df5ed57872c4cb.zip
fcitx-configtool: patch paths to fcitx-remote
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r--pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix b/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix
index e10ffae4a51..ae9d8d0f53f 100644
--- a/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix
+++ b/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix
@@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
   buildInputs = [ makeWrapper fcitx cmake isocodes gtk3
     gnome3.adwaita-icon-theme ];
 
+  # Patch paths to `fcitx-remote`
+  prePatch = ''
+    for f in gtk{3,}/config_widget.c; do
+      substituteInPlace $f \
+        --replace 'EXEC_PREFIX "/bin/fcitx-remote"' '"${fcitx}/bin/fcitx-remote"'
+    done
+  '';
+
   preFixup = ''
     wrapProgram $out/bin/fcitx-config-gtk3 \
       --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS";