maomaowm/nix/default.nix
Noor Latif 3642fafe49 fix(nix): update deprecated xorg package names to top-level
xcbutilwm → libxcb-wm

This eliminates the deprecation warnings:
- "The xorg package set has been deprecated, 'xorg.xcbutilwm' has been renamed to 'libxcb-wm'"

Changes:
- nix/default.nix:14: xcbutilwm, → libxcb-wm,
- nix/default.nix:60: xcbutilwm → libxcb-wm
2026-02-26 17:53:33 +08:00

76 lines
1.2 KiB
Nix

{
lib,
libX11,
libinput,
libxcb,
libxkbcommon,
pcre2,
pixman,
pkg-config,
stdenv,
wayland,
wayland-protocols,
wayland-scanner,
libxcb-wm,
xwayland,
meson,
ninja,
scenefx,
wlroots_0_19,
libGL,
enableXWayland ? true,
debug ? false,
}:
stdenv.mkDerivation {
pname = "mango";
version = "nightly";
src = builtins.path {
path = ../.;
name = "source";
};
mesonFlags = [
(lib.mesonEnable "xwayland" enableXWayland)
(lib.mesonBool "asan" debug)
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs =
[
libinput
libxcb
libxkbcommon
pcre2
pixman
wayland
wayland-protocols
wlroots_0_19
scenefx
libGL
]
++ lib.optionals enableXWayland [
libX11
libxcb-wm
xwayland
];
passthru = {
providedSessions = ["mango"];
};
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;
};
}