Merge pull request #73272 from oxalica/fcitx-configtool-path-fix

fcitx-configtool: patch paths to fcitx-remote
This commit is contained in:
Dennis Gosnell 2019-11-13 17:07:06 +09:00 committed by GitHub
commit 3ac9f1ecce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";