summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/uim/default.nix
blob: 99a415407c172fde253ef291f41147146f2b112e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{stdenv, fetchurl, intltool, pkgconfig, qt4, gtk2, gtk3, kdelibs,
 cmake, anthy, automoc4, m17n_lib, m17n_db}:

stdenv.mkDerivation rec {
  version = "1.8.6";
  name = "uim-${version}";

  buildInputs = [
    intltool
    pkgconfig
    qt4
    gtk2
    gtk3
    kdelibs
    cmake
    anthy
    automoc4
    m17n_lib
    m17n_db
  ];

  patches = [ ./data-hook.patch ];

  configureFlags = [
    "--with-gtk2"
    "--with-gtk3"
    "--enable-kde4-applet"
    "--enable-notify=knotify4"
    "--enable-pref"
    "--with-qt4"
    "--with-qt4-immodule"
    "--with-skk"
    "--with-x"
    "--with-anthy-utf8"
  ];

  dontUseCmakeConfigure = true;

  src = fetchurl {
    url = "http://uim.googlecode.com/files/uim-${version}.tar.bz2";
    sha1 = "43b9dbdead6797880e6cfc9c032ecb2d37d42777";
  };

  meta = with stdenv.lib; {
    homepage    = "http://code.google.com/p/uim/";
    description = "A multilingual input method framework";
    license     = stdenv.lib.licenses.bsd3;
    platforms   = stdenv.lib.platforms.linux;
    maintainers = with maintainers; [ ericsagnes ];
  };
}