summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/inputmethods
diff options
context:
space:
mode:
authorPoscat <poscat@mail.poscat.moe>2020-12-13 11:13:52 +0800
committerPoscat <poscat@mail.poscat.moe>2021-01-10 14:31:01 +0800
commit5409030ea1a8091e06a7c1cdc2ced196d3ed79d9 (patch)
tree667096f93625d7b7256dfff3d96edd8c37db18e1 /pkgs/tools/inputmethods
parente42b4d312fb39a38ac487671c233dfe868e9d6db (diff)
fcitx5-gtk: Init at 5.0.1
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r--pkgs/tools/inputmethods/fcitx5/fcitx5-gtk.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/fcitx5-gtk.nix b/pkgs/tools/inputmethods/fcitx5/fcitx5-gtk.nix
new file mode 100644
index 000000000000..ce157f792535
--- /dev/null
+++ b/pkgs/tools/inputmethods/fcitx5/fcitx5-gtk.nix
@@ -0,0 +1,71 @@
+{ stdenv
+, fetchurl
+, fetchFromGitHub
+, cmake
+, extra-cmake-modules
+, fcitx5
+, gobject-introspection
+, gtk2
+, gtk3
+, pcre
+, libuuid
+, libselinux
+, libsepol
+, libthai
+, libdatrie
+, libXdmcp
+, libxkbcommon
+, epoxy
+, dbus
+, at-spi2-core
+, libXtst
+, withGTK2 ? false
+}:
+
+stdenv.mkDerivation rec {
+ pname = "fcitx5-gtk";
+ version = "5.0.1";
+
+ src = fetchFromGitHub {
+ owner = "fcitx";
+ repo = "fcitx5-gtk";
+ rev = version;
+ sha256 = "rkusIqMRQMTjcpJR335as1xUQrzD9dLVB/wrLstPXPY=";
+ };
+
+ cmakeFlags = [
+ "-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
+ "-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
+ ] ++ stdenv.lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
+
+ buildInputs = [
+ gtk3
+ gobject-introspection
+ fcitx5
+ pcre
+ libuuid
+ libselinux
+ libsepol
+ libthai
+ libdatrie
+ libXdmcp
+ libxkbcommon
+ epoxy
+ dbus
+ at-spi2-core
+ libXtst
+ ] ++ stdenv.lib.optional withGTK2 gtk2;
+
+ nativeBuildInputs = [
+ cmake
+ extra-cmake-modules
+ ];
+
+ meta = with stdenv.lib; {
+ description = "Fcitx5 gtk im module and glib based dbus client library";
+ homepage = "https://github.com/fcitx/fcitx5-gtk";
+ license = licenses.lgpl21Plus;
+ maintainers = with maintainers; [ poscat ];
+ platforms = platforms.linux;
+ };
+}