mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
Merge pull request #125888 from yanganto/hime-0.9.11
hime: unstable-2020-06-27 -> 0.9.11
This commit is contained in:
commit
398c416a4f
1 changed files with 26 additions and 13 deletions
|
@ -1,27 +1,40 @@
|
|||
{
|
||||
stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib,
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, which
|
||||
, gtk2
|
||||
, gtk3
|
||||
, qt4
|
||||
, qt5
|
||||
, libXtst
|
||||
, lib
|
||||
, libchewing
|
||||
, unixtools
|
||||
, anthy
|
||||
}:
|
||||
|
||||
# chewing and anthy do not work well
|
||||
# so we do not enable these input method at this moment
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hime";
|
||||
version = "unstable-2020-06-27";
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hime";
|
||||
version = "0.9.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "hime-ime";
|
||||
repo = "hime";
|
||||
rev = "c89751a58836906e6916355fd037fc74fd7a7a15";
|
||||
sha256 = "024w67q0clzxigsrvqbxpiy8firjvrqi7wbkkcapzzhzapv3nm8x";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which pkg-config ];
|
||||
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase ];
|
||||
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
|
||||
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ];
|
||||
|
||||
preConfigure = "patchShebangs configure";
|
||||
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
|
||||
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; {
|
||||
homepage = "http://hime-ime.github.io/";
|
||||
|
|
Loading…
Reference in a new issue