nixpkgs/pkgs/development/libraries/librime/default.nix

29 lines
737 B
Nix
Raw Normal View History

2017-09-12 16:23:09 +01:00
{ stdenv, fetchFromGitHub, cmake, boost, glog, leveldb, marisa, opencc,
libyamlcpp, gmock }:
stdenv.mkDerivation rec {
name = "librime-${version}";
version = "1.3.2";
2017-09-12 16:23:09 +01:00
src = fetchFromGitHub {
owner = "rime";
repo = "librime";
2018-03-11 14:56:09 +00:00
rev = "${version}";
sha256 = "06q10cv7a3i6d8l3sq79nasw3p1njvmjgh4jq2hqw9abcx351m1r";
2017-09-12 16:23:09 +01:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ boost glog leveldb marisa opencc libyamlcpp gmock ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
2018-06-23 12:34:55 +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;
maintainers = with maintainers; [ sifmelcara ];
2018-03-11 14:56:09 +00:00
platforms = platforms.linux;
2017-09-12 16:23:09 +01:00
};
}