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