ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
47 lines
818 B
Nix
47 lines
818 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, gettext
|
|
, fcitx5
|
|
, librime
|
|
, brise
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcitx5-rime";
|
|
version = "5.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcitx";
|
|
repo = "fcitx5-rime";
|
|
rev = version;
|
|
sha256 = "sha256-mPNZ/B5bpxua+E1T+oz9v2QKAzGraA2cfT8oJacC35U=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DRIME_DATA_DIR=${brise}/share/rime-data"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
pkg-config
|
|
gettext
|
|
];
|
|
|
|
buildInputs = [
|
|
fcitx5
|
|
librime
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RIME support for Fcitx5";
|
|
homepage = "https://github.com/fcitx/fcitx5-rime";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ poscat ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|