2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, gobject-introspection
|
2021-06-04 09:07:49 +00:00
|
|
|
, glib
|
2021-01-15 22:18:51 +00:00
|
|
|
, gtk2
|
|
|
|
, gtk3
|
2021-02-13 14:23:35 +00:00
|
|
|
, gtk4
|
2021-06-04 09:07:49 +00:00
|
|
|
, fmt
|
2021-01-15 22:18:51 +00:00
|
|
|
, pcre
|
|
|
|
, libuuid
|
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, libthai
|
|
|
|
, libdatrie
|
|
|
|
, libXdmcp
|
|
|
|
, libxkbcommon
|
2021-12-06 16:07:01 +00:00
|
|
|
, libepoxy
|
2021-01-15 22:18:51 +00:00
|
|
|
, dbus
|
|
|
|
, at-spi2-core
|
|
|
|
, libXtst
|
|
|
|
, withGTK2 ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-gtk";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "5.0.16";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-04 09:07:49 +00:00
|
|
|
repo = pname;
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-gdYtQyCczJOGkCjl7fVCjcKkhEW3wDO5HDYNfMhnb1g=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
|
|
|
|
"-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
|
|
|
|
] ++ lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
glib
|
2021-01-15 22:18:51 +00:00
|
|
|
gtk3
|
2021-02-13 14:23:35 +00:00
|
|
|
gtk4
|
2021-06-04 09:07:49 +00:00
|
|
|
fmt
|
2021-01-15 22:18:51 +00:00
|
|
|
gobject-introspection
|
|
|
|
fcitx5
|
|
|
|
pcre
|
|
|
|
libuuid
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
|
|
|
libdatrie
|
|
|
|
libXdmcp
|
|
|
|
libxkbcommon
|
2021-12-06 16:07:01 +00:00
|
|
|
libepoxy
|
2021-01-15 22:18:51 +00:00
|
|
|
dbus
|
|
|
|
at-spi2-core
|
|
|
|
libXtst
|
|
|
|
] ++ lib.optional withGTK2 gtk2;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|