aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/inputmethods
diff options
context:
space:
mode:
authorlaMudri <lamudri@gmail.com>2019-05-19 13:11:11 +0100
committerlaMudri <lamudri@gmail.com>2019-08-12 10:48:09 +0100
commitba21259d655cddcae23df4d5eb137ad5b6354896 (patch)
treec6378c7f2bf5a9b5a5b2c130ea8ec77e808a21b1 /pkgs/tools/inputmethods
parent4557b9f1f50aa813ae673fe6fcd30ca872968947 (diff)
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).
Diffstat (limited to 'pkgs/tools/inputmethods')
-rw-r--r--pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
index 3f2ab1fc96a..a0afb9d3355 100644
--- a/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
+++ b/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
@@ -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;