1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 gettext,
8 fcitx5,
9 libhangul,
10 nixosTests,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "fcitx5-hangul";
15 version = "5.1.6";
16
17 src = fetchFromGitHub {
18 owner = "fcitx";
19 repo = pname;
20 rev = version;
21 hash = "sha256-WTTMW86KsrncfDHttri2eSA0bp/Vm4QVyl9tWkJn00E=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 extra-cmake-modules
27 gettext
28 ];
29
30 buildInputs = [
31 fcitx5
32 libhangul
33 ];
34
35 passthru.tests = {
36 inherit (nixosTests) fcitx5;
37 };
38
39 meta = with lib; {
40 description = "Hangul wrapper for Fcitx5";
41 homepage = "https://github.com/fcitx/fcitx5-hangul";
42 license = licenses.lgpl21Plus;
43 maintainers = with maintainers; [ xrelkd ];
44 platforms = platforms.linux;
45 };
46}