nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib,
3}:
4
5# chewing and anthy do not work well
6# so we do not enable these input method at this moment
7
8stdenv.mkDerivation {
9 name = "hime";
10 version = "unstable-2020-06-27";
11
12 src = fetchFromGitHub {
13 owner = "hime-ime";
14 repo = "hime";
15 rev = "c89751a58836906e6916355fd037fc74fd7a7a15";
16 sha256 = "024w67q0clzxigsrvqbxpiy8firjvrqi7wbkkcapzzhzapv3nm8x";
17 };
18
19 nativeBuildInputs = [ which pkg-config ];
20 buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase ];
21
22 preConfigure = "patchShebangs configure";
23 configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
24 dontWrapQtApps = true;
25
26 meta = with lib; {
27 homepage = "http://hime-ime.github.io/";
28 downloadPage = "https://github.com/hime-ime/hime/downloads";
29 description = "A useful input method engine for Asia region";
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ yanganto ];
33 };
34}