nixpkgs/pkgs/tools/inputmethods/hime/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

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
preConfigure = "patchShebangs configure";
2020-09-16 16:01:57 +00:00
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
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
meta = with lib; {
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
};
}