2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
|
|
|
, qt5
|
|
|
|
, libXtst
|
|
|
|
, lib
|
|
|
|
, libchewing
|
|
|
|
, unixtools
|
|
|
|
, anthy
|
2020-10-07 09:15:18 +00:00
|
|
|
}:
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hime";
|
|
|
|
version = "0.9.11";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-28 23:13:55 +00:00
|
|
|
repo = pname;
|
2020-10-07 09:15:18 +00:00
|
|
|
owner = "hime-ime";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [ libXtst gtk2 gtk3 qt5.qtbase libchewing anthy ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2020-10-19 00:13:06 +00:00
|
|
|
preConfigure = "patchShebangs configure";
|
2020-10-07 09:15:18 +00:00
|
|
|
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
postFixup = ''
|
|
|
|
hime_rpath=$(patchelf --print-rpath $out/bin/hime)
|
|
|
|
patchelf --set-rpath $out/lib/hime:$hime_rpath $out/bin/hime
|
|
|
|
'';
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
homepage = "http://hime-ime.github.io/";
|
|
|
|
downloadPage = "https://github.com/hime-ime/hime/downloads";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Useful input method engine for Asia region";
|
2020-10-19 00:13:06 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ yanganto ];
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
}
|