Merge pull request #87735 from pmeiyu/master
This commit is contained in:
commit
6f52d0f572
@ -6769,6 +6769,12 @@
|
||||
githubId = 8641;
|
||||
name = "Pierre Carrier";
|
||||
};
|
||||
pengmeiyu = {
|
||||
email = "pengmyu@gmail.com";
|
||||
github = "pmeiyu";
|
||||
githubId = 8529551;
|
||||
name = "Peng Mei Yu";
|
||||
};
|
||||
penguwin = {
|
||||
email = "penguwin@penguwin.eu";
|
||||
github = "penguwin";
|
||||
|
44
pkgs/tools/inputmethods/ibus-engines/ibus-rime/default.nix
Normal file
44
pkgs/tools/inputmethods/ibus-engines/ibus-rime/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkg-config, gdk-pixbuf, glib, ibus, libnotify
|
||||
, librime, brise }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ibus-rime";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rime";
|
||||
repo = "ibus-rime";
|
||||
rev = version;
|
||||
sha256 = "0zbajz7i18vrqwdyclzywvsjg6qzaih64jhi3pkxp7mbw8jc5vhy";
|
||||
};
|
||||
|
||||
buildInputs = [ gdk-pixbuf glib ibus libnotify librime brise ];
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace 'cmake' 'cmake -DRIME_DATA_DIR=${brise}/share/rime-data'
|
||||
|
||||
substituteInPlace rime_config.h \
|
||||
--replace '/usr' $out
|
||||
|
||||
substituteInPlace rime_config.h \
|
||||
--replace 'IBUS_RIME_SHARED_DATA_DIR IBUS_RIME_INSTALL_PREFIX' \
|
||||
'IBUS_RIME_SHARED_DATA_DIR "${brise}"'
|
||||
|
||||
substituteInPlace rime.xml \
|
||||
--replace '/usr' $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
description = "Rime input method engine for IBus";
|
||||
homepage = "https://rime.im/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ pengmeiyu ];
|
||||
};
|
||||
}
|
@ -3037,6 +3037,8 @@ in
|
||||
protobuf = pkgs.protobuf3_8.overrideDerivation (oldAttrs: { stdenv = clangStdenv; });
|
||||
};
|
||||
|
||||
rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };
|
||||
|
||||
table = callPackage ../tools/inputmethods/ibus-engines/ibus-table { };
|
||||
|
||||
table-chinese = callPackage ../tools/inputmethods/ibus-engines/ibus-table-chinese {
|
||||
|
Loading…
Reference in New Issue
Block a user