lol
1{ mkDerivation
2, lib
3, fetchFromGitHub
4, fetchpatch
5
6, at-spi2-atk
7, at-spi2-core
8, libepoxy
9, gtk3
10, libdatrie
11, libselinux
12, libsepol
13, libthai
14, pcre
15, util-linux
16, wayland
17, xorg
18
19, cmake
20, doxygen
21, pkg-config
22, wayland-protocols
23}:
24
25mkDerivation rec {
26 pname = "maliit-framework";
27 version = "2.3.0";
28
29 src = fetchFromGitHub {
30 owner = "maliit";
31 repo = "framework";
32 rev = "refs/tags/${version}";
33 sha256 = "sha256-q+hiupwlA0PfG+xtomCUp2zv6HQrGgmOd9CU193ucrY=";
34 };
35
36 patches = [
37 # FIXME: backport GCC 12 build fix, remove for next release
38 (fetchpatch {
39 url = "https://github.com/maliit/framework/commit/86e55980e3025678882cb9c4c78614f86cdc1f04.diff";
40 hash = "sha256-5R+sCI05vJX5epu6hcDSWWzlZ8ns1wKEJ+u8xC6d8Xo=";
41 })
42 ];
43
44 buildInputs = [
45 at-spi2-atk
46 at-spi2-core
47 libepoxy
48 gtk3
49 libdatrie
50 libselinux
51 libsepol
52 libthai
53 pcre
54 util-linux
55 wayland
56 xorg.libXdmcp
57 xorg.libXtst
58 ];
59
60 nativeBuildInputs = [
61 cmake
62 doxygen
63 pkg-config
64 wayland-protocols
65 ];
66
67 preConfigure = ''
68 cmakeFlags+="-DQT5_PLUGINS_INSTALL_DIR=$out/$qtPluginPrefix"
69 '';
70
71 meta = with lib; {
72 description = "Core libraries of Maliit and server";
73 homepage = "http://maliit.github.io/";
74 license = licenses.lgpl21Plus;
75 maintainers = with maintainers; [ samueldr ];
76 };
77}