mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
refactor: format nix code with alejandra & rename nix files for clarity
This commit is contained in:
parent
bb86ea12ca
commit
df492dab6b
6 changed files with 298 additions and 311 deletions
|
|
@ -1,78 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
libX11,
|
||||
libinput,
|
||||
libxcb,
|
||||
libxkbcommon,
|
||||
pcre2,
|
||||
cjson,
|
||||
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
|
||||
cjson
|
||||
pixman
|
||||
wayland
|
||||
wayland-protocols
|
||||
wlroots_0_19
|
||||
scenefx
|
||||
libGL
|
||||
]
|
||||
++ lib.optionals enableXWayland [
|
||||
libX11
|
||||
libxcb-wm
|
||||
xwayland
|
||||
];
|
||||
|
||||
passthru = {
|
||||
providedSessions = ["mango"];
|
||||
};
|
||||
|
||||
meta = {
|
||||
mainProgram = "mango";
|
||||
description = "Practical and Powerful wayland compositor (dwm but wayland)";
|
||||
homepage = "https://github.com/mangowm/mango";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue