maomaowm/nix/default.nix

77 lines
1.2 KiB
Nix
Raw Normal View History

2025-02-25 22:05:29 +08:00
{
lib,
libX11,
libinput,
libxcb,
libxkbcommon,
2025-06-03 18:47:35 +08:00
pcre2,
2025-02-25 22:05:29 +08:00
pixman,
pkg-config,
stdenv,
wayland,
wayland-protocols,
wayland-scanner,
xcbutilwm,
xwayland,
meson,
ninja,
2025-06-25 00:03:25 +08:00
scenefx,
wlroots_0_19,
libGL,
enableXWayland ? true,
debug ? false,
}:
stdenv.mkDerivation {
2025-07-30 14:54:59 +08:00
pname = "mango";
version = "nightly";
2025-02-25 22:05:29 +08:00
src = builtins.path {
path = ../.;
name = "source";
};
2025-02-25 22:05:29 +08:00
mesonFlags = [
(lib.mesonEnable "xwayland" enableXWayland)
(lib.mesonBool "asan" debug)
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
2025-02-25 22:05:29 +08:00
buildInputs =
[
libinput
libxcb
libxkbcommon
pcre2
pixman
wayland
wayland-protocols
wlroots_0_19
scenefx
libGL
]
++ lib.optionals enableXWayland [
libX11
xcbutilwm
xwayland
];
passthru = {
providedSessions = ["mango"];
};
2025-03-24 10:55:11 +08:00
meta = {
mainProgram = "mango";
description = "A streamlined but feature-rich Wayland compositor";
homepage = "https://github.com/DreamMaoMao/mango";
license = lib.licenses.gpl3Plus;
maintainers = [];
platforms = lib.platforms.unix;
};
}