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