2021-04-13 19:44:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, pkg-config
|
|
|
|
, fcitx5
|
|
|
|
, m17n_lib
|
|
|
|
, m17n_db
|
|
|
|
, gettext
|
|
|
|
, fmt
|
2023-05-24 13:37:59 +00:00
|
|
|
, nixosTests
|
2021-04-13 19:44:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-m17n";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "5.1.0";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-qo3tS0tjQCD7+CoNvjyvhQPAfa38o7/f/MjqRkIL2R0=";
|
2021-04-13 19:44:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
m17n_db
|
|
|
|
m17n_lib
|
|
|
|
fmt
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) fcitx5;
|
|
|
|
};
|
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "m17n support for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-m17n";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ Technical27 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|