about summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix
blob: 1cb849fa09b18c32c734bccebfe17f89f936ce58 (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
{ stdenv, fetchurl, intltool, pkgconfig, sqlite, libpinyin, db
, ibus, glib, gtk3, python3, pygobject3
}:

stdenv.mkDerivation rec {
  name = "ibus-libpinyin-${version}";
  version = "1.7.4";

  meta = with stdenv.lib; {
    isIbusEngine = true;
    description  = "IBus interface to the libpinyin input method";
    homepage     = https://github.com/libpinyin/ibus-libpinyin;
    license      = licenses.gpl2;
    platforms    = platforms.linux;
  };

  #configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";

  buildInputs = [
  ibus glib sqlite libpinyin python3 gtk3 db
  ];

  nativeBuildInputs = [ intltool pkgconfig ];

  src = fetchurl {
    url = "mirror://sourceforge/project/libpinyin/ibus-libpinyin/ibus-libpinyin-${version}.tar.gz";
    sha256 = "c2085992f76ca669ebe4b7e7c0170433bbfb61f764f8336b3b17490b9fb1c334";
  };
}