1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 fcitx5,
8 lua,
9 gettext,
10}:
11stdenv.mkDerivation rec {
12 pname = "fcitx5-lua";
13 version = "5.0.14";
14
15 src = fetchFromGitHub {
16 owner = "fcitx";
17 repo = pname;
18 rev = version;
19 hash = "sha256-7FBUOsaKr9cuEaqd4dqnAGL5sd3RF+qV6GEkOUQ1/k4=";
20 };
21
22 nativeBuildInputs = [
23 cmake
24 extra-cmake-modules
25 gettext
26 ];
27
28 buildInputs = [
29 fcitx5
30 lua
31 ];
32
33 passthru = {
34 extraLdLibraries = [ lua ];
35 };
36
37 meta = with lib; {
38 description = "Lua support for Fcitx 5";
39 homepage = "https://github.com/fcitx/fcitx5-lua";
40 license = licenses.lgpl21Plus;
41 maintainers = with maintainers; [ poscat ];
42 platforms = platforms.linux;
43 };
44}