nixpkgs/pkgs/tools/inputmethods/fcitx5/fcitx5-gtk.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv
2020-12-13 03:13:52 +00:00
, fetchFromGitHub
, cmake
, extra-cmake-modules
, fcitx5
, gobject-introspection
, gtk2
, gtk3
, gtk4
2020-12-13 03:13:52 +00:00
, pcre
, libuuid
, libselinux
, libsepol
, libthai
, libdatrie
, libXdmcp
, libxkbcommon
, epoxy
, dbus
, at-spi2-core
, libXtst
, withGTK2 ? false
}:
stdenv.mkDerivation rec {
pname = "fcitx5-gtk";
2021-01-16 03:15:59 +00:00
version = "5.0.3";
2020-12-13 03:13:52 +00:00
src = fetchFromGitHub {
owner = "fcitx";
repo = "fcitx5-gtk";
rev = version;
2021-01-16 03:15:59 +00:00
sha256 = "sha256-+BzXbZyzC3fvLqysufblk0zK9fAg5jslVdm/v3jz4B4=";
2020-12-13 03:13:52 +00:00
};
cmakeFlags = [
"-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
"-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
2021-01-15 09:19:50 +00:00
] ++ lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
2020-12-13 03:13:52 +00:00
buildInputs = [
gtk3
gtk4
2020-12-13 03:13:52 +00:00
gobject-introspection
fcitx5
pcre
libuuid
libselinux
libsepol
libthai
libdatrie
libXdmcp
libxkbcommon
epoxy
dbus
at-spi2-core
libXtst
2021-01-15 09:19:50 +00:00
] ++ lib.optional withGTK2 gtk2;
2020-12-13 03:13:52 +00:00
nativeBuildInputs = [
cmake
extra-cmake-modules
];
2021-01-15 09:19:50 +00:00
meta = with lib; {
2020-12-13 03:13:52 +00:00
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;
};
}