diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-10-27 16:04:26 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-07 00:51:29 +0100 |
commit | 6bc71fb30ec66b87c9bf487032865da520e142ba (patch) | |
tree | 90fe844510f628250ba5e1ccd79ac90485850ac0 | |
parent | c86b5ea0fffc5ba95c6b7b60435d66136a109eaf (diff) | |
download | nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar.gz nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar.bz2 nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar.lz nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar.xz nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.tar.zst nixpkgs-6bc71fb30ec66b87c9bf487032865da520e142ba.zip |
ibus-engines.m17n: fix setup
* add setup again * patch shebangs instead of wrapping * format the expression
-rw-r--r-- | pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix | 53 |
1 files changed, 37 insertions, 16 deletions
diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix index 01b227f6f1b..c026a9d1a81 100644 --- a/pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix +++ b/pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix @@ -1,6 +1,14 @@ -{ stdenv, fetchFromGitHub -, autoreconfHook, pkgconfig -, ibus, m17n_lib, m17n_db, gettext, python3 +{ stdenv +, fetchFromGitHub +, autoreconfHook +, pkgconfig +, ibus +, gtk3 +, m17n_lib +, m17n_db +, gettext +, python3 +, wrapGAppsHook }: stdenv.mkDerivation rec { @@ -8,27 +16,40 @@ stdenv.mkDerivation rec { version = "1.4.1"; src = fetchFromGitHub { - owner = "ibus"; - repo = "ibus-m17n"; - rev = version; + owner = "ibus"; + repo = "ibus-m17n"; + rev = version; sha256 = "1xl7swqn46nhi43rka0zx666mpk667ykag3sz07x0zqrwi41frps"; }; - buildInputs = [ - ibus m17n_lib m17n_db gettext - python3 + nativeBuildInputs = [ + autoreconfHook + gettext + pkgconfig + wrapGAppsHook ]; - nativeBuildInputs = [ autoreconfHook pkgconfig python3.pkgs.wrapPython ]; + buildInputs = [ + ibus + gtk3 + m17n_lib + m17n_db + (python3.withPackages (ps: [ + ps.pygobject3 + (ps.toPythonModule ibus) + ])) + ]; - postFixup = "wrapPythonPrograms"; + configureFlags = [ + "--with-gtk=3.0" + ]; meta = with stdenv.lib; { isIbusEngine = true; - description = "m17n engine for ibus"; - homepage = https://github.com/ibus/ibus-m17n; - license = licenses.gpl2; - platforms = platforms.linux; - maintainers = with maintainers; [ ericsagnes ]; + description = "m17n engine for ibus"; + homepage = https://github.com/ibus/ibus-m17n; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ ericsagnes ]; }; } |