2016-10-01 03:37:45 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, autoreconfHook, docbook2x, pkgconfig
|
2018-12-02 11:41:15 +00:00
|
|
|
, gtk3, dconf, gobject-introspection
|
2019-05-19 12:11:11 +00:00
|
|
|
, ibus, python3, wrapGAppsHook }:
|
2015-06-22 14:21:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-19 18:47:50 +00:00
|
|
|
pname = "ibus-table";
|
2020-03-05 04:04:38 +00:00
|
|
|
version = "1.9.25";
|
2015-06-22 14:21:14 +00:00
|
|
|
|
2016-10-01 03:37:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kaio";
|
|
|
|
repo = "ibus-table";
|
|
|
|
rev = version;
|
2020-03-05 04:04:38 +00:00
|
|
|
sha256 = "0v570qpnb2q79aqr9f0xnska34y7hw34ibiwsf7ybcw69fhi1zkg";
|
2015-06-22 14:21:14 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 23:30:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Data paths will be set at run-time.
|
|
|
|
sed -e "/export IBUS_TABLE_LIB_LOCATION=/ s/^.*$//" \
|
|
|
|
-e "/export IBUS_TABLE_LOCATION=/ s/^.*$//" \
|
|
|
|
-i "engine/ibus-engine-table.in"
|
|
|
|
sed -e "/export IBUS_TABLE_BIN_PATH=/ s/^.*$//" \
|
|
|
|
-e "/export IBUS_TABLE_DATA_DIR=/ s/^.*$//" \
|
|
|
|
-i "engine/ibus-table-createdb.in"
|
|
|
|
sed -e "/export IBUS_PREFIX=/ s/^.*$//" \
|
|
|
|
-e "/export IBUS_DATAROOTDIR=/ s/^.$//" \
|
|
|
|
-e "/export IBUS_LOCALEDIR=/ s/^.$//" \
|
|
|
|
-i "setup/ibus-setup-table.in"
|
2018-10-07 01:07:29 +00:00
|
|
|
substituteInPlace engine/tabcreatedb.py --replace '/usr/share/ibus-table' $out/share/ibus-table
|
2016-02-26 23:30:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-06-01 23:30:20 +00:00
|
|
|
dconf
|
|
|
|
gtk3
|
|
|
|
ibus
|
|
|
|
(python3.withPackages (pypkgs: with pypkgs; [
|
|
|
|
pygobject3
|
|
|
|
(toPythonModule ibus)
|
|
|
|
]))
|
2016-02-26 23:30:32 +00:00
|
|
|
];
|
|
|
|
|
2019-05-19 12:11:11 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
docbook2x
|
|
|
|
pkgconfig
|
2019-10-20 14:09:40 +00:00
|
|
|
gobject-introspection
|
2019-05-19 12:11:11 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-10-01 03:37:45 +00:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace $sourceRoot/engine/Makefile.am \
|
|
|
|
--replace "docbook2man" "docbook2man --sgml"
|
|
|
|
'';
|
2015-06-22 14:21:14 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-02-10 07:10:35 +00:00
|
|
|
isIbusEngine = true;
|
|
|
|
description = "An IBus framework for table-based input methods";
|
2020-03-05 04:04:38 +00:00
|
|
|
homepage = "https://github.com/kaio/ibus-table/wiki";
|
2016-02-10 07:10:35 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mudri ];
|
2015-06-22 14:21:14 +00:00
|
|
|
};
|
|
|
|
}
|