at 23.05-pre 47 lines 1.1 kB view raw
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 14}: 15 16stdenv.mkDerivation rec { 17 pname = "hime"; 18 version = "0.9.11"; 19 20 src = fetchFromGitHub { 21 repo = pname; 22 owner = "hime-ime"; 23 rev = "v${version}"; 24 sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI="; 25 }; 26 27 nativeBuildInputs = [ which pkg-config unixtools.whereis ]; 28 buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ]; 29 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 ''; 37 38 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 }; 47}