diff --git a/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix b/pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix index e10ffae4a51e..ae9d8d0f53f6 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";