1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 gettext,
8 fcitx5,
9 libchewing,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "fcitx5-chewing";
14 version = "5.1.7";
15
16 src = fetchFromGitHub {
17 owner = "fcitx";
18 repo = pname;
19 rev = version;
20 hash = "sha256-QL1rRMsaDP98as0zlmoDPoVnbqbKQFoUFSCX+j31JcM=";
21 };
22
23 nativeBuildInputs = [
24 cmake
25 extra-cmake-modules
26 gettext
27 ];
28
29 buildInputs = [
30 fcitx5
31 libchewing
32 ];
33
34 meta = with lib; {
35 description = "Chewing wrapper for Fcitx5";
36 homepage = "https://github.com/fcitx/fcitx5-chewing";
37 license = licenses.lgpl21Plus;
38 maintainers = with maintainers; [ xrelkd ];
39 platforms = platforms.linux;
40 };
41}