ibus-anthy: upgrade to Python 3
This commit is contained in:
parent
f7f965baaa
commit
cb10990fdc
@ -1,5 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection,
|
{ stdenv, fetchFromGitHub, makeWrapper, ibus, anthy, intltool
|
||||||
python, pythonPackages, gtk3, libtool, automake, autoconf }:
|
, pkgconfig, glib, gobjectIntrospection
|
||||||
|
, python3, pygobject3, gtk3, libtool, automake, autoconf
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ibus-anthy-${version}";
|
name = "ibus-anthy-${version}";
|
||||||
@ -18,12 +20,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection
|
buildInputs = [
|
||||||
python pythonPackages.pygobject3 gtk3 libtool automake autoconf ];
|
makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection
|
||||||
|
python3 pygobject3 gtk3 libtool automake autoconf
|
||||||
|
];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
||||||
for file in "$out"/libexec/*; do
|
for file in "$out"/libexec/*; do # */
|
||||||
wrapProgram "$file" \
|
wrapProgram "$file" \
|
||||||
--prefix PYTHONPATH : $PYTHONPATH \
|
--prefix PYTHONPATH : $PYTHONPATH \
|
||||||
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
||||||
|
@ -1171,7 +1171,9 @@ let
|
|||||||
|
|
||||||
ibus-engines = {
|
ibus-engines = {
|
||||||
|
|
||||||
anthy = callPackage ../tools/inputmethods/ibus-engines/ibus-anthy { };
|
anthy = callPackage ../tools/inputmethods/ibus-engines/ibus-anthy {
|
||||||
|
inherit (python3Packages) pygobject3;
|
||||||
|
};
|
||||||
|
|
||||||
hangul = callPackage ../tools/inputmethods/ibus-engines/ibus-hangul {
|
hangul = callPackage ../tools/inputmethods/ibus-engines/ibus-hangul {
|
||||||
inherit (python3Packages) pygobject3;
|
inherit (python3Packages) pygobject3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user