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