2017-09-12 17:23:09 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
|
|
|
|
libyamlcpp, gmock }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "librime-${version}";
|
2018-04-11 01:58:22 +02:00
|
|
|
version = "1.3.1";
|
2017-09-12 17:23:09 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rime";
|
|
|
|
repo = "librime";
|
2018-03-11 15:56:09 +01:00
|
|
|
rev = "${version}";
|
2018-04-11 01:58:22 +02:00
|
|
|
sha256 = "1y0h3nnz97smx9z8h5fzk4c27mvrwv8kajxffqc43bhyvxvb2jd6";
|
2017-09-12 17:23:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gmock ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://rime.im/;
|
|
|
|
description = "Rime Input Method Engine, the core library";
|
|
|
|
license = licenses.bsd3;
|
2017-10-03 14:07:12 +02:00
|
|
|
maintainers = with maintainers; [ sifmelcara ];
|
2018-03-11 15:56:09 +01:00
|
|
|
platforms = platforms.linux;
|
2017-09-12 17:23:09 +02:00
|
|
|
};
|
|
|
|
}
|