maomaowm/nix/default.nix

71 lines
1.1 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,
enableXWayland ? true,
meson,
ninja,
2025-04-13 09:05:09 +08:00
wlroots,
mmsg,
}: let
2025-02-25 22:05:29 +08:00
pname = "maomaowm";
in
stdenv.mkDerivation {
inherit pname;
version = "nightly";
2025-02-25 22:05:29 +08:00
src = builtins.path {
path = ../.;
name = "source";
};
2025-02-25 22:05:29 +08:00
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
]
++ lib.optionals enableXWayland [
libX11
xcbutilwm
xwayland
];
passthru = {
providedSessions = ["maomao"];
inherit mmsg;
};
2025-03-24 10:55:11 +08:00
meta = {
mainProgram = "maomao";
description = "A streamlined but feature-rich Wayland compositor";
homepage = "https://github.com/DreamMaoMao/maomaowm";
license = lib.licenses.mit;
maintainers = [];
platforms = lib.platforms.unix;
};
}