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