hime: unstable-2020-06-27 -> 0.9.11

+26 -13
+26 -13
pkgs/tools/inputmethods/hime/default.nix
··· 1 - { 2 - stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib, 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 3 14 }: 4 15 5 - # chewing and anthy do not work well 6 - # so we do not enable these input method at this moment 7 - 8 - stdenv.mkDerivation { 9 - name = "hime"; 10 - version = "unstable-2020-06-27"; 16 + stdenv.mkDerivation rec { 17 + pname = "hime"; 18 + version = "0.9.11"; 11 19 12 20 src = fetchFromGitHub { 21 + repo = pname; 13 22 owner = "hime-ime"; 14 - repo = "hime"; 15 - rev = "c89751a58836906e6916355fd037fc74fd7a7a15"; 16 - sha256 = "024w67q0clzxigsrvqbxpiy8firjvrqi7wbkkcapzzhzapv3nm8x"; 23 + rev = "v${version}"; 24 + sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI="; 17 25 }; 18 26 19 - nativeBuildInputs = [ which pkg-config ]; 20 - buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase ]; 27 + nativeBuildInputs = [ which pkg-config unixtools.whereis ]; 28 + buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ]; 21 29 22 30 preConfigure = "patchShebangs configure"; 23 31 configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ]; 24 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 + 25 38 26 39 meta = with lib; { 27 40 homepage = "http://hime-ime.github.io/";