ibus-engines.table: fix after update of settings infrastructure

Fixes #56621. Adds a wrapper to deal with gsettings, and includes a hack to make
things actually work (postFixup).
This commit is contained in:
laMudri 2019-05-19 13:11:11 +01:00
parent 4557b9f1f5
commit ba21259d65

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub
, autoreconfHook, docbook2x, pkgconfig
, gtk3, dconf, gobject-introspection
, ibus, python3 }:
, ibus, python3, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "ibus-table-${version}";
@ -33,14 +33,24 @@ stdenv.mkDerivation rec {
dconf gtk3 gobject-introspection ibus (python3.withPackages (pypkgs: with pypkgs; [ pygobject3 ]))
];
nativeBuildInputs = [ autoreconfHook docbook2x pkgconfig python3.pkgs.wrapPython ];
nativeBuildInputs = [
autoreconfHook
docbook2x
pkgconfig
python3.pkgs.wrapPython
wrapGAppsHook
];
postUnpack = ''
substituteInPlace $sourceRoot/engine/Makefile.am \
--replace "docbook2man" "docbook2man --sgml"
'';
postFixup = "wrapPythonPrograms";
postFixup = ''
wrapPythonPrograms
sed -e 's/LookupTable/LookupTable.new/' \
-i "$out/share/ibus-table/engine/table.py"
'';
meta = with stdenv.lib; {
isIbusEngine = true;