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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-15 12:19:50 +03:00
{ lib, stdenv
2020-12-13 06:13:52 +03:00
, fetchFromGitHub
, cmake
, extra-cmake-modules
, fcitx5
, gobject-introspection
2021-06-02 15:42:28 +03:00
, glib
2020-12-13 06:13:52 +03:00
, gtk2
, gtk3
, gtk4
2021-06-02 15:42:28 +03:00
, fmt
2020-12-13 06:13:52 +03:00
, pcre
, libuuid
, libselinux
, libsepol
, libthai
, libdatrie
, libXdmcp
, libxkbcommon
, libepoxy
2020-12-13 06:13:52 +03:00
, dbus
, at-spi2-core
, libXtst
, withGTK2 ? false
}:
stdenv.mkDerivation rec {
pname = "fcitx5-gtk";
2024-01-06 08:25:10 +03:00
version = "5.1.1";
2020-12-13 06:13:52 +03:00
src = fetchFromGitHub {
owner = "fcitx";
2021-06-02 15:42:28 +03:00
repo = pname;
2020-12-13 06:13:52 +03:00
rev = version;
2024-01-06 08:25:10 +03:00
sha256 = "sha256-Ex24cHTsYsZjP8o+vrCdgGogk1UotWpd8xaLZAqzgaQ=";
2020-12-13 06:13:52 +03:00
};
2023-11-07 04:52:23 +03:00
outputs = [ "out" "dev" ];
2020-12-13 06:13:52 +03:00
cmakeFlags = [
"-DGOBJECT_INTROSPECTION_GIRDIR=share/gir-1.0"
"-DGOBJECT_INTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
2021-01-15 12:19:50 +03:00
] ++ lib.optional (! withGTK2) "-DENABLE_GTK2_IM_MODULE=off";
2020-12-13 06:13:52 +03:00
buildInputs = [
2021-06-02 15:42:28 +03:00
glib
2020-12-13 06:13:52 +03:00
gtk3
gtk4
2021-06-02 15:42:28 +03:00
fmt
2020-12-13 06:13:52 +03:00
fcitx5
pcre
libuuid
libselinux
libsepol
libthai
libdatrie
libXdmcp
libxkbcommon
libepoxy
2020-12-13 06:13:52 +03:00
dbus
at-spi2-core
libXtst
2021-01-15 12:19:50 +03:00
] ++ lib.optional withGTK2 gtk2;
2020-12-13 06:13:52 +03:00
nativeBuildInputs = [
cmake
extra-cmake-modules
gobject-introspection
2020-12-13 06:13:52 +03:00
];
2021-01-15 12:19:50 +03:00
meta = with lib; {
2020-12-13 06:13:52 +03: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;
};
}