2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
|
2021-06-04 03:54:22 +01:00
|
|
|
libyamlcpp, gtest, capnproto, pkg-config }:
|
2017-09-12 16:23:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-07 03:30:03 +01:00
|
|
|
pname = "librime";
|
2021-06-16 12:51:45 +01:00
|
|
|
version = "1.7.3";
|
2017-09-12 16:23:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rime";
|
2021-06-04 03:54:22 +01:00
|
|
|
repo = pname;
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2021-06-16 12:51:45 +01:00
|
|
|
sha256 = "sha256-GzNMwyJR9PgJN0eGYbnBW6LS3vo4SUVLdyNG9kcEE18=";
|
2017-09-12 16:23:09 +01:00
|
|
|
};
|
|
|
|
|
2021-06-04 03:54:22 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-09-12 16:23:09 +01:00
|
|
|
|
2021-06-04 03:54:22 +01:00
|
|
|
buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gtest capnproto ];
|
2017-09-12 16:23:09 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-06-16 15:35:40 +01:00
|
|
|
homepage = "https://rime.im/";
|
2017-09-12 16:23:09 +01:00
|
|
|
description = "Rime Input Method Engine, the core library";
|
|
|
|
license = licenses.bsd3;
|
2017-10-03 13:07:12 +01:00
|
|
|
maintainers = with maintainers; [ sifmelcara ];
|
2018-03-11 14:56:09 +00:00
|
|
|
platforms = platforms.linux;
|
2017-09-12 16:23:09 +01:00
|
|
|
};
|
|
|
|
}
|