2022-02-02 16:48:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, gettext
|
|
|
|
, fcitx5
|
|
|
|
, libhangul
|
2023-05-19 21:13:45 +00:00
|
|
|
, nixosTests
|
2022-02-02 16:48:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-hangul";
|
2023-11-03 07:54:37 +00:00
|
|
|
version = "5.1.1";
|
2022-02-02 16:48:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-03 07:54:37 +00:00
|
|
|
sha256 = "sha256-3gkZh+ZzgTdpTbQe92gxJlG0x6Yhl7LfMiFEq5mb92o=";
|
2022-02-02 16:48:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
libhangul
|
|
|
|
];
|
|
|
|
|
2023-05-19 21:13:45 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) fcitx5;
|
|
|
|
};
|
|
|
|
|
2022-02-02 16:48:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Hangul wrapper for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-hangul";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|