commit
398c416a4f
|
@ -1,27 +1,40 @@
|
||||||
{
|
{ stdenv
|
||||||
stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib,
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, which
|
||||||
|
, gtk2
|
||||||
|
, gtk3
|
||||||
|
, qt4
|
||||||
|
, qt5
|
||||||
|
, libXtst
|
||||||
|
, lib
|
||||||
|
, libchewing
|
||||||
|
, unixtools
|
||||||
|
, anthy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# chewing and anthy do not work well
|
stdenv.mkDerivation rec {
|
||||||
# so we do not enable these input method at this moment
|
pname = "hime";
|
||||||
|
version = "0.9.11";
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "hime";
|
|
||||||
version = "unstable-2020-06-27";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
repo = pname;
|
||||||
owner = "hime-ime";
|
owner = "hime-ime";
|
||||||
repo = "hime";
|
rev = "v${version}";
|
||||||
rev = "c89751a58836906e6916355fd037fc74fd7a7a15";
|
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
|
||||||
sha256 = "024w67q0clzxigsrvqbxpiy8firjvrqi7wbkkcapzzhzapv3nm8x";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ which pkg-config ];
|
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
|
||||||
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase ];
|
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ];
|
||||||
|
|
||||||
preConfigure = "patchShebangs configure";
|
preConfigure = "patchShebangs configure";
|
||||||
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
|
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
postFixup = ''
|
||||||
|
hime_rpath=$(patchelf --print-rpath $out/bin/hime)
|
||||||
|
patchelf --set-rpath $out/lib/hime:$hime_rpath $out/bin/hime
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://hime-ime.github.io/";
|
homepage = "http://hime-ime.github.io/";
|
||||||
|
|
Loading…
Reference in New Issue