2021-06-06 01:05:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
|
|
|
, qt4
|
|
|
|
, qt5
|
|
|
|
, libXtst
|
|
|
|
, lib
|
|
|
|
, libchewing
|
|
|
|
, unixtools
|
|
|
|
, anthy
|
2020-09-16 16:01:57 +00:00
|
|
|
}:
|
|
|
|
|
2021-06-06 01:05:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hime";
|
|
|
|
version = "0.9.11";
|
2020-09-16 16:01:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-06 01:05:52 +00:00
|
|
|
repo = pname;
|
2020-09-16 16:01:57 +00:00
|
|
|
owner = "hime-ime";
|
2021-06-06 01:05:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
|
2020-09-16 16:01:57 +00:00
|
|
|
};
|
|
|
|
|
2021-06-06 01:05:52 +00:00
|
|
|
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
|
|
|
|
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ];
|
2020-09-16 16:01:57 +00:00
|
|
|
|
2020-10-09 15:32:58 +00:00
|
|
|
preConfigure = "patchShebangs configure";
|
2020-09-16 16:01:57 +00:00
|
|
|
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
2021-06-06 01:05:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
hime_rpath=$(patchelf --print-rpath $out/bin/hime)
|
|
|
|
patchelf --set-rpath $out/lib/hime:$hime_rpath $out/bin/hime
|
|
|
|
'';
|
|
|
|
|
2020-09-16 16:01:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-09 15:32:58 +00:00
|
|
|
homepage = "http://hime-ime.github.io/";
|
|
|
|
downloadPage = "https://github.com/hime-ime/hime/downloads";
|
|
|
|
description = "A useful input method engine for Asia region";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ yanganto ];
|
2020-09-16 16:01:57 +00:00
|
|
|
};
|
|
|
|
}
|