Files
nixpkgs/pkgs/by-name/ma/mango/package.nix
2026-10-02 18:20:35 +09:00

89 lines
1.4 KiB
Nix

{
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.17.5";
src = fetchFromGitHub {
owner = "mangowm";
repo = "mango";
tag = finalAttrs.version;
hash = "sha256-azXPZ57eVc5ZpUTjc4ZZwDRb5ZnZ4DQsPmzUS3YHXtk=";
};
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
yvnth
];
platforms = lib.platforms.linux;
};
})