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