nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix

55 lines
916 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, gettext
, pkg-config
, wrapGAppsHook
, sqlite
, libpinyin
, db
, ibus
, glib
, gtk3
, python3
2016-03-26 17:12:16 +00:00
}:
stdenv.mkDerivation rec {
pname = "ibus-libpinyin";
version = "1.12.0";
2016-10-01 02:33:10 +01:00
src = fetchFromGitHub {
owner = "libpinyin";
repo = "ibus-libpinyin";
rev = version;
sha256 = "sha256-fEEiwRoGGFAki1DMQvGuzjz2NAjhExyH11l8KTwjjsI=";
2016-10-01 02:33:10 +01:00
};
nativeBuildInputs = [
autoreconfHook
gettext
pkg-config
wrapGAppsHook
];
buildInputs = [
ibus
glib
sqlite
libpinyin
(python3.withPackages (pypkgs: with pypkgs; [
pygobject3
(toPythonModule ibus)
]))
gtk3
db
];
2016-10-01 02:33:10 +01:00
meta = with lib; {
2016-03-26 17:12:16 +00:00
isIbusEngine = true;
description = "IBus interface to the libpinyin input method";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.linux;
2016-03-26 17:12:16 +00:00
};
}