tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
hime: unstable-2020-06-27 -> 0.9.11
Antonio Yang
4 years ago
621cda44
e977f0f1
+26
-13
1 changed file
expand all
collapse all
unified
split
pkgs
tools
inputmethods
hime
default.nix
+26
-13
pkgs/tools/inputmethods/hime/default.nix
···
1
1
-
{
2
2
-
stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib,
1
1
+
{ stdenv
2
2
+
, fetchFromGitHub
3
3
+
, pkg-config
4
4
+
, which
5
5
+
, gtk2
6
6
+
, gtk3
7
7
+
, qt4
8
8
+
, qt5
9
9
+
, libXtst
10
10
+
, lib
11
11
+
, libchewing
12
12
+
, unixtools
13
13
+
, anthy
3
14
}:
4
15
5
5
-
# chewing and anthy do not work well
6
6
-
# so we do not enable these input method at this moment
7
7
-
8
8
-
stdenv.mkDerivation {
9
9
-
name = "hime";
10
10
-
version = "unstable-2020-06-27";
16
16
+
stdenv.mkDerivation rec {
17
17
+
pname = "hime";
18
18
+
version = "0.9.11";
11
19
12
20
src = fetchFromGitHub {
21
21
+
repo = pname;
13
22
owner = "hime-ime";
14
14
-
repo = "hime";
15
15
-
rev = "c89751a58836906e6916355fd037fc74fd7a7a15";
16
16
-
sha256 = "024w67q0clzxigsrvqbxpiy8firjvrqi7wbkkcapzzhzapv3nm8x";
23
23
+
rev = "v${version}";
24
24
+
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
17
25
};
18
26
19
19
-
nativeBuildInputs = [ which pkg-config ];
20
20
-
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase ];
27
27
+
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
28
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
33
+
postFixup = ''
34
34
+
hime_rpath=$(patchelf --print-rpath $out/bin/hime)
35
35
+
patchelf --set-rpath $out/lib/hime:$hime_rpath $out/bin/hime
36
36
+
'';
37
37
+
25
38
26
39
meta = with lib; {
27
40
homepage = "http://hime-ime.github.io/";