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
|
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
|
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
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "labwc";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.6.0";
|
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";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-P1hKYTW++dpV3kdmI5nBGun080gVTrKzi2WOJKR84j4=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
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";
|
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
|
|
|
})
|