2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv
|
2020-12-13 03:16:03 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2020-12-13 03:16:03 +00:00
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, gettext
|
|
|
|
, fcitx5
|
|
|
|
, librime
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcitx5-rime";
|
2022-03-10 01:50:01 +00:00
|
|
|
version = "5.0.12";
|
2020-12-13 03:16:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcitx";
|
2021-06-02 12:43:13 +00:00
|
|
|
repo = pname;
|
2020-12-13 03:16:03 +00:00
|
|
|
rev = version;
|
2022-03-10 01:50:01 +00:00
|
|
|
sha256 = "sha256-8ETSRBTznd4AKzYbSW/zIMZXV+yuHXLhfTJV3DJ2ahc=";
|
2020-12-13 03:16:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2022-01-02 01:53:11 +00:00
|
|
|
"-DRIME_DATA_DIR=${placeholder "out"}/share/rime-data"
|
2020-12-13 03:16:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2020-12-13 03:16:03 +00:00
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fcitx5
|
|
|
|
librime
|
|
|
|
];
|
|
|
|
|
2022-04-02 10:43:39 +00:00
|
|
|
patches = [ ./fcitx5-rime-with-nix-env-variable.patch ];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
meta = with lib; {
|
2020-12-13 03:16:03 +00:00
|
|
|
description = "RIME support for Fcitx5";
|
|
|
|
homepage = "https://github.com/fcitx/fcitx5-rime";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ poscat ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|