1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{ mkDerivation
, lib
, fetchFromGitHub
, fetchpatch
, anthy
, hunspell
, libchewing
, libpinyin
, maliit-framework
, pcre
, presage
, qtfeedback
, qtmultimedia
, qtquickcontrols2
, qtgraphicaleffects
, cmake
, pkg-config
, wrapGAppsHook
}:
mkDerivation rec {
pname = "maliit-keyboard";
version = "2.3.1";
src = fetchFromGitHub {
owner = "maliit";
repo = "keyboard";
rev = version;
sha256 = "sha256-XH3sKQuNMLgJi2aV+bnU2cflwkFIw4RYVfxzQiejCT0=";
};
postPatch = ''
substituteInPlace data/schemas/org.maliit.keyboard.maliit.gschema.xml \
--replace /usr/share "$out/share"
'';
buildInputs = [
anthy
hunspell
libchewing
libpinyin
maliit-framework
pcre
presage
qtfeedback
qtmultimedia
qtquickcontrols2
qtgraphicaleffects
];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook
];
postInstall = ''
glib-compile-schemas "$out"/share/glib-2.0/schemas
'';
meta = with lib; {
description = "Virtual keyboard";
mainProgram = "maliit-keyboard";
homepage = "http://maliit.github.io/";
license = with licenses; [ lgpl3Only bsd3 cc-by-30 ];
maintainers = with maintainers; [ samueldr ];
};
}
|