summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix
blob: 01b227f6f1b4274dfb2d0853fb13ef524769bd51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub
, autoreconfHook, pkgconfig
, ibus, m17n_lib, m17n_db, gettext, python3
}:

stdenv.mkDerivation rec {
  pname = "ibus-m17n";
  version = "1.4.1";

  src = fetchFromGitHub {
    owner  = "ibus";
    repo   = "ibus-m17n";
    rev    = version;
    sha256 = "1xl7swqn46nhi43rka0zx666mpk667ykag3sz07x0zqrwi41frps";
  };

  buildInputs = [
    ibus m17n_lib m17n_db gettext
    python3
  ];

  nativeBuildInputs = [ autoreconfHook pkgconfig python3.pkgs.wrapPython ];

  postFixup = "wrapPythonPrograms";

  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 ];
  };
}