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-08-12 10:48:09 +01:00
parent 4557b9f1f5
commit ba21259d65
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub { stdenv, fetchFromGitHub
, autoreconfHook, docbook2x, pkgconfig , autoreconfHook, docbook2x, pkgconfig
, gtk3, dconf, gobject-introspection , gtk3, dconf, gobject-introspection
, ibus, python3 }: , ibus, python3, wrapGAppsHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ibus-table-${version}"; name = "ibus-table-${version}";
@@ -33,14 +33,24 @@ stdenv.mkDerivation rec {
dconf gtk3 gobject-introspection ibus (python3.withPackages (pypkgs: with pypkgs; [ pygobject3 ])) 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 = '' postUnpack = ''
substituteInPlace $sourceRoot/engine/Makefile.am \ substituteInPlace $sourceRoot/engine/Makefile.am \
--replace "docbook2man" "docbook2man --sgml" --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; { meta = with stdenv.lib; {
isIbusEngine = true; isIbusEngine = true;