diff --git a/pkgs/by-name/ma/mangowc/package.nix b/pkgs/by-name/ma/mangowc/package.nix new file mode 100644 index 000000000000..bc0f9699129f --- /dev/null +++ b/pkgs/by-name/ma/mangowc/package.nix @@ -0,0 +1,75 @@ +{ + lib, + libX11, + libinput, + libxcb, + libxkbcommon, + pcre2, + pixman, + pkg-config, + stdenv, + fetchFromGitHub, + wayland, + wayland-protocols, + wayland-scanner, + xcbutilwm, + xwayland, + enableXWayland ? true, + meson, + ninja, + scenefx, + wlroots_0_19, + libGL, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "mangowc"; + version = "0.10.5"; + + src = fetchFromGitHub { + owner = "DreamMaoMao"; + repo = "mangowc"; + tag = finalAttrs.version; + hash = "sha256-ZESyUtCiIQh6R0VYAo8YaP95Damw3MJVvKy5qU3pgTA="; + }; + + 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 + xcbutilwm + xwayland + ]; + + passthru = { + providedSessions = [ + "dwl" + "mangowc" + ]; + }; + + meta = { + mainProgram = "mango"; + description = "Lightweight and feature-rich Wayland compositor based on dwl"; + homepage = "https://github.com/DreamMaoMao/mangowc"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ hustlerone ]; + platforms = lib.platforms.linux; + }; +})