mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
fcitx-configtool: patch paths to fcitx-remote
This commit is contained in:
parent
01429fc2ab
commit
05c94e3acd
|
@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ makeWrapper fcitx cmake isocodes gtk3
|
buildInputs = [ makeWrapper fcitx cmake isocodes gtk3
|
||||||
gnome3.adwaita-icon-theme ];
|
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 = ''
|
preFixup = ''
|
||||||
wrapProgram $out/bin/fcitx-config-gtk3 \
|
wrapProgram $out/bin/fcitx-config-gtk3 \
|
||||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS";
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS";
|
||||||
|
|
Loading…
Reference in a new issue