diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-12-07 12:10:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-07 12:10:44 +0100 |
commit | 36de08ebe13a751aa24babe2f3d711c45c208496 (patch) | |
tree | 253f87aa0225f238cc260dc0f29037daffd8c849 /pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix | |
parent | 928fdab4a100be81739592d115ff7fc734fae3ca (diff) | |
parent | f6afb29ee1c3a60e4dd98916a81ca79b3dc9feee (diff) | |
download | nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar.gz nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar.bz2 nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar.lz nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar.xz nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.tar.zst nixpkgs-36de08ebe13a751aa24babe2f3d711c45c208496.zip |
Merge pull request #71442 from jtojnar/ibus-fixes
Fix/clean up various ibus-engines
Diffstat (limited to 'pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix')
-rw-r--r-- | pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix | 56 |
1 files changed, 39 insertions, 17 deletions
diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix index d2f68fd5269..cfdfa85ad9f 100644 --- a/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix +++ b/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix @@ -1,35 +1,57 @@ -{ stdenv, fetchurl, intltool, pkgconfig -, anthy, ibus, glib, gobject-introspection, gtk3, python3 +{ stdenv +, fetchurl +, gettext +, pkgconfig +, wrapGAppsHook +, anthy +, ibus +, glib +, gobject-introspection +, gtk3 +, python3 }: stdenv.mkDerivation rec { pname = "ibus-anthy"; version = "1.5.11"; - meta = with stdenv.lib; { - isIbusEngine = true; - description = "IBus interface to the anthy input method"; - homepage = https://github.com/fujiwarat/ibus-anthy; - license = licenses.gpl2Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ gebner ericsagnes ]; + src = fetchurl { + url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz"; + sha256 = "1zwgswpibh67sgbza8kvg03v06maxc08ihkgm5hmh333sjq9d5c0"; }; - configureFlags = [ "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t" ]; - buildInputs = [ - anthy glib gobject-introspection gtk3 ibus (python3.withPackages (ps: [ps.pygobject3])) + anthy + glib + gtk3 + ibus + (python3.withPackages (ps: [ + ps.pygobject3 + (ps.toPythonModule ibus) + ])) + ]; + + nativeBuildInputs = [ + gettext + gobject-introspection + pkgconfig + wrapGAppsHook ]; - nativeBuildInputs = [ intltool pkgconfig python3.pkgs.wrapPython ]; + configureFlags = [ + "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t" + ]; postFixup = '' - wrapPythonPrograms substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out ''; - src = fetchurl { - url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz"; - sha256 = "1zwgswpibh67sgbza8kvg03v06maxc08ihkgm5hmh333sjq9d5c0"; + meta = with stdenv.lib; { + isIbusEngine = true; + description = "IBus interface to the anthy input method"; + homepage = https://github.com/fujiwarat/ibus-anthy; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ gebner ericsagnes ]; }; } |