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
76
77
78
79
80
81
82
83
84
85
86
87
|
{
cjson,
lib,
libdrm,
libinput,
libxcb,
libxkbcommon,
pango,
pcre2,
pixman,
pkg-config,
stdenv,
fetchFromGitHub,
wayland,
wayland-protocols,
wayland-scanner,
libxcb-wm,
xwayland,
enableXWayland ? true,
meson,
ninja,
scenefx,
wlroots_0_20,
libGL,
}:
stdenv.mkDerivation (finalAttrs: {
__structuredAttrs = true;
strictDeps = true;
pname = "mango";
version = "0.16.3";
src = fetchFromGitHub {
owner = "mangowm";
repo = "mango";
tag = finalAttrs.version;
hash = "sha256-tymTjjNKWohVzXycg2mN7cSApQ6NDmn9k4LklNq/WGo=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs = [
cjson
libdrm
libinput
libxkbcommon
pango
pcre2
pixman
wayland
wayland-protocols
wlroots_0_20
scenefx
libGL
]
++ lib.optionals enableXWayland [
libxcb
libxcb-wm
xwayland
];
mesonFlags = [
(lib.mesonEnable "xwayland" enableXWayland)
];
passthru = {
providedSessions = [
"mango"
];
};
meta = {
mainProgram = "mango";
description = "Lightweight and feature-rich Wayland compositor based on dwl";
homepage = "https://mangowm.github.io";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
hustlerone
samiser
];
platforms = lib.platforms.linux;
};
})
|