2020-12-31 07:48:55 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkg-config, cmake, fcitx, gtk3, isocodes, gnome3 }:
|
2014-10-15 10:40:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-13 22:54:31 +01:00
|
|
|
name = "fcitx-configtool-0.4.10";
|
2014-10-15 10:40:28 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GTK-based config tool for Fcitx";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cdepillabout ];
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://download.fcitx-im.org/fcitx-configtool/${name}.tar.xz";
|
2018-07-13 22:54:31 +01:00
|
|
|
sha256 = "1yyi9jhkwn49lx9a47k1zbvwgazv4y4z72gnqgzdpgdzfrlrgi5w";
|
2014-10-15 10:40:28 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ fcitx isocodes gtk3 gnome3.adwaita-icon-theme ];
|
2016-01-03 19:32:59 +00:00
|
|
|
|
2019-11-12 06:29:10 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2016-01-03 19:32:59 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram $out/bin/fcitx-config-gtk3 \
|
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS";
|
|
|
|
'';
|
2014-10-15 10:40:28 +01:00
|
|
|
}
|