1 { lib, stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
2 libyamlcpp, gtest, capnproto, pkg-config, plugins ? [ ] }:
5 copySinglePlugin = plug: "cp -r ${plug} plugins/${plug.name}";
7 ${lib.concatMapStringsSep "\n" copySinglePlugin plugins}
11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 sha256 = "sha256-GzNMwyJR9PgJN0eGYbnBW6LS3vo4SUVLdyNG9kcEE18=";
22 nativeBuildInputs = [ cmake pkg-config ];
24 buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gtest capnproto ]
25 ++ plugins; # for propagated build inputs
27 preConfigure = copyPlugins;
30 homepage = "https://rime.im/";
31 description = "Rime Input Method Engine, the core library";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ vonfry ];
34 platforms = platforms.linux;