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