1 { lib, stdenv, fetchFromGitHub
2 , autoreconfHook, docbook2x, pkg-config
3 , gtk3, dconf, gobject-introspection
4 , ibus, python3, wrapGAppsHook3 }:
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "sha256-bPHwpTrDCLil6xNBr7lKAMP71koFlZvPc2vpDuwzZzM=";
18 # Data paths will be set at run-time.
19 sed -e "/export IBUS_TABLE_LIB_LOCATION=/ s/^.*$//" \
20 -e "/export IBUS_TABLE_LOCATION=/ s/^.*$//" \
21 -i "engine/ibus-engine-table.in"
22 sed -e "/export IBUS_TABLE_BIN_PATH=/ s/^.*$//" \
23 -e "/export IBUS_TABLE_DATA_DIR=/ s/^.*$//" \
24 -i "engine/ibus-table-createdb.in"
25 sed -e "/export IBUS_PREFIX=/ s/^.*$//" \
26 -e "/export IBUS_DATAROOTDIR=/ s/^.$//" \
27 -e "/export IBUS_LOCALEDIR=/ s/^.$//" \
28 -i "setup/ibus-setup-table.in"
29 substituteInPlace engine/tabcreatedb.py --replace '/usr/share/ibus-table' $out/share/ibus-table
30 substituteInPlace engine/ibus_table_location.py \
31 --replace '/usr/libexec' $out/libexec \
32 --replace '/usr/share/ibus-table/' $out/share/ibus-table/
39 (python3.withPackages (pypkgs: with pypkgs; [
55 substituteInPlace $sourceRoot/engine/Makefile.am \
56 --replace "docbook2man" "docbook2man --sgml"
61 description = "IBus framework for table-based input methods";
62 mainProgram = "ibus-table-createdb";
63 homepage = "https://github.com/kaio/ibus-table/wiki";
64 license = licenses.lgpl21;
65 platforms = platforms.linux;
66 maintainers = with maintainers; [ mudri ];