2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cairo
|
|
|
|
, glib
|
2022-02-10 20:34:41 +00:00
|
|
|
, libdrm
|
2021-02-13 14:23:35 +00:00
|
|
|
, libinput
|
2022-02-10 20:34:41 +00:00
|
|
|
, libxcb
|
|
|
|
, libxkbcommon
|
2021-02-13 14:23:35 +00:00
|
|
|
, libxml2
|
2023-04-29 16:46:19 +00:00
|
|
|
, gettext
|
2022-02-10 20:34:41 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-13 14:23:35 +00:00
|
|
|
, pango
|
2022-02-10 20:34:41 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2023-04-29 16:46:19 +00:00
|
|
|
, wayland-scanner
|
2021-02-13 14:23:35 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-12-28 21:21:41 +00:00
|
|
|
, wlroots_0_16
|
|
|
|
, xcbutilwm
|
2021-02-13 14:23:35 +00:00
|
|
|
, xwayland
|
|
|
|
}:
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
let
|
|
|
|
wlroots = wlroots_0_16;
|
|
|
|
in
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "labwc";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.6.4";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-02-10 20:34:41 +00:00
|
|
|
owner = "labwc";
|
2022-12-28 21:21:41 +00:00
|
|
|
repo = "labwc";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = finalAttrs.version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-8FMC0tq5Gp5qDPUmoJTCrHEergDMUbiTco17jPTJUgE=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
nativeBuildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
gettext
|
2021-08-05 21:33:18 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
2023-04-29 16:46:19 +00:00
|
|
|
wayland-scanner
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
glib
|
2021-08-05 21:33:18 +00:00
|
|
|
libdrm
|
2021-02-13 14:23:35 +00:00
|
|
|
libinput
|
2021-08-05 21:33:18 +00:00
|
|
|
libxcb
|
|
|
|
libxkbcommon
|
2021-02-13 14:23:35 +00:00
|
|
|
libxml2
|
|
|
|
pango
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wlroots
|
2022-12-28 21:21:41 +00:00
|
|
|
xcbutilwm
|
2021-02-13 14:23:35 +00:00
|
|
|
xwayland
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonEnable "xwayland" true)
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/labwc/labwc";
|
|
|
|
description = "A Wayland stacking compositor, similar to Openbox";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/labwc/labwc/${finalAttrs.version}/NEWS.md";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2022-03-30 09:31:56 +00:00
|
|
|
inherit (wayland.meta) platforms;
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
2022-12-28 21:21:41 +00:00
|
|
|
})
|