{ stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc, libyamlcpp, gmock }: stdenv.mkDerivation rec { name = "librime-${version}"; version = "1.3.2"; src = fetchFromGitHub { owner = "rime"; repo = "librime"; rev = "${version}"; sha256 = "06q10cv7a3i6d8l3sq79nasw3p1njvmjgh4jq2hqw9abcx351m1r"; }; nativeBuildInputs = [ cmake ]; buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gmock ]; enableParallelBuilding = true; meta = with stdenv.lib; { homepage = https://rime.im/; description = "Rime Input Method Engine, the core library"; license = licenses.bsd3; maintainers = with maintainers; [ sifmelcara ]; platforms = platforms.linux; }; }