2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv
|
2020-12-13 03:23:55 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
|
|
|
, lua5_3
|
|
|
|
, luaPackage ? lua5_3
|
|
|
|
, gettext
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-lua";
|
2021-03-23 02:06:26 +00:00
|
|
|
version = "5.0.4";
|
2020-12-13 03:23:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = "fcitx5-lua";
|
2021-01-22 03:58:27 +00:00
|
|
|
rev = version;
|
2021-03-23 02:06:26 +00:00
|
|
|
sha256 = "sha256-1gKfFq+x/tCOYqESO49Qddp5z6zXO7ULjTJgDEl8BqI=";
|
2020-12-13 03:23:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
luaPackage
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-12-13 03:23:55 +00:00
|
|
|
description = "Lua support for Fcitx 5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-lua";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|