2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
|
2020-04-24 23:36:52 +00:00
|
|
|
libyamlcpp, gmock }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librime";
|
|
|
|
version = "1.5.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rime";
|
|
|
|
repo = "librime";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0xskhdhk7dgpc71r39pfzxi5vrlzy90aqj1gzv8nnapq91p2awhv";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gmock ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://rime.im/";
|
|
|
|
description = "Rime Input Method Engine, the core library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sifmelcara ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|