1{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
2 libyamlcpp, gtest, capnproto, pkg-config }:
3
4stdenv.mkDerivation rec {
5 pname = "librime";
6 version = "1.7.3";
7
8 src = fetchFromGitHub {
9 owner = "rime";
10 repo = pname;
11 rev = version;
12 sha256 = "sha256-GzNMwyJR9PgJN0eGYbnBW6LS3vo4SUVLdyNG9kcEE18=";
13 };
14
15 nativeBuildInputs = [ cmake pkg-config ];
16
17 buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gtest capnproto ];
18
19 meta = with lib; {
20 homepage = "https://rime.im/";
21 description = "Rime Input Method Engine, the core library";
22 license = licenses.bsd3;
23 maintainers = with maintainers; [ sifmelcara ];
24 platforms = platforms.linux;
25 };
26}