summary refs log blame commit diff
path: root/pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix
blob: fc4677e06b06e33202d5c8d0bcf5ecca442b5a50 (plain) (tree)
1
2
3
4
5
6
7
8

                                            
                           


                         
                           
                     




                              
                                                                    


                                                               
                                                                                    



                     
 

                                   


                                                                  
                                 
                                                    

                                   
 
{ stdenv, fetchFromGitHub, autoreconfHook
, intltool, pkgconfig, sqlite, libpinyin, db
, ibus, glib, gtk3, python3
}:

stdenv.mkDerivation rec {
  pname = "ibus-libpinyin";
  version = "1.10.0";

  src = fetchFromGitHub {
    owner  = "libpinyin";
    repo   = "ibus-libpinyin";
    rev    = version;
    sha256 = "0zkzz6ig74nws8phqxbsggnpf5g5f2hxi0mdyn2m3s4nm14q3ma6";
  };

  buildInputs = [ ibus glib sqlite libpinyin python3 gtk3 db ];
  nativeBuildInputs = [ autoreconfHook intltool pkgconfig python3.pkgs.wrapPython ];

  postAutoreconf = ''
    intltoolize
  '';

  postFixup = "wrapPythonPrograms";

  meta = with stdenv.lib; {
    isIbusEngine = true;
    description  = "IBus interface to the libpinyin input method";
    license      = licenses.gpl2;
    maintainers  = with maintainers; [ ericsagnes ];
    platforms    = platforms.linux;
  };
}