ibus-engines.m17n: fix setup

* add setup again
* patch shebangs instead of wrapping
* format the expression
This commit is contained in:
Jan Tojnar 2019-10-27 16:04:26 +01:00
parent c86b5ea0ff
commit 6bc71fb30e
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,6 +1,14 @@
{ stdenv, fetchFromGitHub { stdenv
, autoreconfHook, pkgconfig , fetchFromGitHub
, ibus, m17n_lib, m17n_db, gettext, python3 , autoreconfHook
, pkgconfig
, ibus
, gtk3
, m17n_lib
, m17n_db
, gettext
, python3
, wrapGAppsHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -8,27 +16,40 @@ stdenv.mkDerivation rec {
version = "1.4.1"; version = "1.4.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ibus"; owner = "ibus";
repo = "ibus-m17n"; repo = "ibus-m17n";
rev = version; rev = version;
sha256 = "1xl7swqn46nhi43rka0zx666mpk667ykag3sz07x0zqrwi41frps"; sha256 = "1xl7swqn46nhi43rka0zx666mpk667ykag3sz07x0zqrwi41frps";
}; };
buildInputs = [ nativeBuildInputs = [
ibus m17n_lib m17n_db gettext autoreconfHook
python3 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; { meta = with stdenv.lib; {
isIbusEngine = true; isIbusEngine = true;
description = "m17n engine for ibus"; description = "m17n engine for ibus";
homepage = https://github.com/ibus/ibus-m17n; homepage = https://github.com/ibus/ibus-m17n;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ ericsagnes ]; maintainers = with maintainers; [ ericsagnes ];
}; };
} }