diff options
author | oxalica <oxalicc@pm.me> | 2019-11-12 14:29:10 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2019-11-13 13:24:21 +0800 |
commit | 05c94e3acda49e206bde32ec28df5ed57872c4cb (patch) | |
tree | 637766d4d6bc647f386327031387ad6d71ec9bfd /pkgs/tools/inputmethods | |
parent | 01429fc2ab40f8ca80a7ba5a0ad506e557156693 (diff) | |
download | nixpkgs-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.nix | 8 |
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"; |