1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 pkg-config,
8 fcitx5,
9 m17n_lib,
10 m17n_db,
11 gettext,
12 fmt,
13 nixosTests,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "fcitx5-m17n";
18 version = "5.1.3";
19
20 src = fetchFromGitHub {
21 owner = "fcitx";
22 repo = pname;
23 rev = version;
24 hash = "sha256-kHMCMsJ8+rI0AtS9zEE5knGvKALhgfmgS8lC/CTmYs0=";
25 };
26
27 nativeBuildInputs = [
28 cmake
29 extra-cmake-modules
30 pkg-config
31 gettext
32 ];
33
34 buildInputs = [
35 fcitx5
36 m17n_db
37 m17n_lib
38 fmt
39 ];
40
41 passthru.tests = {
42 inherit (nixosTests) fcitx5;
43 };
44
45 meta = with lib; {
46 description = "m17n support for Fcitx5";
47 homepage = "https://github.com/fcitx/fcitx5-m17n";
48 license = licenses.lgpl21Plus;
49 maintainers = with maintainers; [ Technical27 ];
50 platforms = platforms.linux;
51 };
52}