nixpkgs-suyu/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix

47 lines
800 B
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ lib, stdenv
2020-12-13 04:16:03 +01:00
, fetchFromGitHub
, pkg-config
2020-12-13 04:16:03 +01:00
, cmake
, extra-cmake-modules
, gettext
, fcitx5
, librime
, brise
}:
stdenv.mkDerivation rec {
pname = "fcitx5-rime";
2021-06-02 14:43:13 +02:00
version = "5.0.6";
2020-12-13 04:16:03 +01:00
src = fetchFromGitHub {
owner = "fcitx";
2021-06-02 14:43:13 +02:00
repo = pname;
2020-12-13 04:16:03 +01:00
rev = version;
2021-06-02 14:43:13 +02:00
sha256 = "1r36c1pl63vka9mxa8f5x0kijapjgxzz5b4db8h87ri9kcxk7i2g";
2020-12-13 04:16:03 +01:00
};
cmakeFlags = [
"-DRIME_DATA_DIR=${brise}/share/rime-data"
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
2020-12-13 04:16:03 +01:00
gettext
];
buildInputs = [
fcitx5
librime
];
2021-01-15 10:19:50 +01:00
meta = with lib; {
2020-12-13 04:16:03 +01:00
description = "RIME support for Fcitx5";
homepage = "https://github.com/fcitx/fcitx5-rime";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ poscat ];
platforms = platforms.linux;
};
}