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
-
{
2
-
stdenv, fetchFromGitHub, pkg-config, which, gtk2, gtk3, qt4, qt5, libXtst, lib,
0
0
0
0
0
0
0
0
0
0
0
3
}:
4
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";
11
12
src = fetchFromGitHub {
0
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;
0
0
0
0
0
25
26
meta = with lib; {
27
homepage = "http://hime-ime.github.io/";
···
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
14
}:
15
16
+
stdenv.mkDerivation rec {
17
+
pname = "hime";
18
+
version = "0.9.11";
0
0
0
19
20
src = fetchFromGitHub {
21
+
repo = pname;
22
owner = "hime-ime";
23
+
rev = "v${version}";
24
+
sha256 = "sha256-fCqet+foQjI+LpTQ/6Egup1GzXELlL2hgbh0dCKLwPI=";
0
25
};
26
27
+
nativeBuildInputs = [ which pkg-config unixtools.whereis ];
28
+
buildInputs = [ libXtst gtk2 gtk3 qt4 qt5.qtbase libchewing anthy ];
29
30
preConfigure = "patchShebangs configure";
31
configureFlags = [ "--disable-lib64" "--disable-qt5-immodule" ];
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
+
38
39
meta = with lib; {
40
homepage = "http://hime-ime.github.io/";