python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / inputmethods / hime / default.nix
blob4c86fb04cf04ca5a84d31f4fad6693b689d552f9
1 { stdenv
2 , fetchFromGitHub
3 , pkg-config
4 , which
5 , gtk2
6 , gtk3
7 , qt4
8 , qt5
9 , libXtst
10 , lib
11 , libchewing
12 , unixtools
13 , anthy
16 stdenv.mkDerivation rec {
17   pname = "hime";
18   version = "0.9.11";
20   src = fetchFromGitHub {
21     repo = pname;
22     owner = "hime-ime";
23     rev = "v${version}";
24     sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
25   };
27   nativeBuildInputs = [ which pkg-config unixtools.whereis ];
28   buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ];
30   preConfigure = "patchShebangs configure";
31   configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
32   dontWrapQtApps = true;
33   postFixup = ''
34     hime_rpath=$(patchelf --print-rpath $out/bin/hime)
35     patchelf --set-rpath $out/lib/hime:$hime_rpath $out/bin/hime
36   '';
39   meta = with lib; {
40     homepage = "http://hime-ime.github.io/";
41     downloadPage = "https://github.com/hime-ime/hime/downloads";
42     description = "A useful input method engine for Asia region";
43     license = licenses.gpl2Plus;
44     platforms = platforms.linux;
45     maintainers = with maintainers; [ yanganto ];
46   };