2022-12-08 02:55:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-12-13 03:23:55 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, fcitx5
|
2022-12-08 02:55:40 +00:00
|
|
|
, lua
|
2020-12-13 03:23:55 +00:00
|
|
|
, gettext
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-lua";
|
2022-09-04 09:18:39 +00:00
|
|
|
version = "5.0.10";
|
2020-12-13 03:23:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2022-02-03 08:14:38 +00:00
|
|
|
repo = pname;
|
2021-01-22 03:58:27 +00:00
|
|
|
rev = version;
|
2022-09-04 09:18:39 +00:00
|
|
|
sha256 = "sha256-0ESgQv8kyc+zv/tDZtBZ+QhFFswD80ApwswFlJs8tOU=";
|
2020-12-13 03:23:55 +00:00
|
|
|
};
|
|
|
|
|
2022-12-08 02:55:40 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
|
|
|
|
|
|
|
buildInputs = [ fcitx5 lua gettext ];
|
2020-12-13 03:23:55 +00:00
|
|
|
|
2022-12-08 02:55:40 +00:00
|
|
|
passthru = {
|
|
|
|
extraLdLibraries = [ lua ];
|
|
|
|
};
|
2020-12-13 03:23:55 +00:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|