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

42 lines
1.3 KiB
Nix
Raw Normal View History

2016-02-28 15:30:09 +00:00
{ stdenv, fetchurl, pkgconfig
, gtk3, dconf, gobjectIntrospection, ibus, python3, pygobject3 }:
2015-06-22 15:21:14 +01:00
stdenv.mkDerivation rec {
name = "ibus-table-${version}";
2016-02-26 23:30:32 +00:00
version = "1.9.11";
2015-06-22 15:21:14 +01:00
src = fetchurl {
url = "https://github.com/kaio/ibus-table/releases/download/${version}/${name}.tar.gz";
2016-02-26 23:30:32 +00:00
sha256 = "14sb89z1inbbhcrbsm5nww8la04ncy2lk32mxfqpi4ghl22ixxqd";
2015-06-22 15:21:14 +01: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"
'';
buildInputs = [
2016-02-28 15:30:09 +00:00
dconf gtk3 gobjectIntrospection ibus python3 pygobject3
2016-02-26 23:30:32 +00:00
];
2016-02-28 15:30:09 +00:00
nativeBuildInputs = [ pkgconfig ];
2015-06-22 15:21:14 +01:00
meta = with stdenv.lib; {
2016-02-10 07:10:35 +00:00
isIbusEngine = true;
description = "An IBus framework for table-based input methods";
homepage = https://github.com/kaio/ibus-table/wiki;
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ mudri ];
2015-06-22 15:21:14 +01:00
};
}