2021-02-05 13:28:59 +00:00
|
|
|
{ lib
|
|
|
|
, cairo
|
2024-03-01 22:42:44 +00:00
|
|
|
, fetchFromGitHub
|
2023-09-23 19:39:14 +00:00
|
|
|
, gettext
|
2021-02-05 13:28:59 +00:00
|
|
|
, glib
|
2022-01-27 22:03:35 +00:00
|
|
|
, libdrm
|
2021-02-05 13:28:59 +00:00
|
|
|
, libinput
|
2023-09-23 19:39:14 +00:00
|
|
|
, libpng
|
|
|
|
, librsvg
|
2022-01-27 22:03:35 +00:00
|
|
|
, libxcb
|
|
|
|
, libxkbcommon
|
2021-02-05 13:28:59 +00:00
|
|
|
, libxml2
|
2022-01-27 22:03:35 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 13:28:59 +00:00
|
|
|
, pango
|
2022-01-27 22:03:35 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2024-03-01 22:42:44 +00:00
|
|
|
, stdenv
|
2021-02-05 13:28:59 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2023-09-23 19:39:14 +00:00
|
|
|
, wayland-scanner
|
2023-07-27 09:58:19 +00:00
|
|
|
, wlroots
|
2022-12-19 01:18:01 +00:00
|
|
|
, xcbutilwm
|
2021-02-05 13:28:59 +00:00
|
|
|
, xwayland
|
|
|
|
}:
|
|
|
|
|
2023-04-16 20:48:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-05 13:28:59 +00:00
|
|
|
pname = "labwc";
|
2024-05-11 01:13:10 +00:00
|
|
|
version = "0.7.2";
|
2021-02-05 13:28:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-27 22:03:35 +00:00
|
|
|
owner = "labwc";
|
2022-12-19 01:18:01 +00:00
|
|
|
repo = "labwc";
|
2023-04-16 20:48:46 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-05-11 01:13:10 +00:00
|
|
|
hash = "sha256-8TSBBNg9+W65vEKmwyAWB2yEOpHqV9YRm5+ttL19ke4=";
|
2021-02-05 13:28:59 +00:00
|
|
|
};
|
|
|
|
|
2024-03-01 22:42:44 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-08-05 09:55:45 +00:00
|
|
|
nativeBuildInputs = [
|
2023-04-23 11:38:56 +00:00
|
|
|
gettext
|
2021-08-05 09:55:45 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
2023-04-23 11:38:56 +00:00
|
|
|
wayland-scanner
|
2021-06-23 12:41:18 +00:00
|
|
|
];
|
2022-01-27 22:03:35 +00:00
|
|
|
|
2021-02-05 13:28:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
glib
|
2021-08-05 09:55:45 +00:00
|
|
|
libdrm
|
2021-02-05 13:28:59 +00:00
|
|
|
libinput
|
2023-09-23 19:39:14 +00:00
|
|
|
libpng
|
|
|
|
librsvg
|
2021-08-05 09:55:45 +00:00
|
|
|
libxcb
|
|
|
|
libxkbcommon
|
2021-02-05 13:28:59 +00:00
|
|
|
libxml2
|
|
|
|
pango
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wlroots
|
2022-12-19 01:18:01 +00:00
|
|
|
xcbutilwm
|
2021-02-05 13:28:59 +00:00
|
|
|
xwayland
|
|
|
|
];
|
|
|
|
|
2023-09-23 19:39:14 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-12-19 01:18:01 +00:00
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonEnable "xwayland" true)
|
|
|
|
];
|
2021-02-05 13:28:59 +00:00
|
|
|
|
2024-01-05 13:58:00 +00:00
|
|
|
passthru = {
|
|
|
|
providedSessions = [ "labwc" ];
|
|
|
|
};
|
|
|
|
|
2023-09-23 19:39:14 +00:00
|
|
|
meta = {
|
2022-01-27 22:03:35 +00:00
|
|
|
homepage = "https://github.com/labwc/labwc";
|
2023-09-23 19:39:14 +00:00
|
|
|
description = "Wayland stacking compositor, inspired by Openbox";
|
2024-03-01 22:42:44 +00:00
|
|
|
changelog = "https://github.com/labwc/labwc/blob/${finalAttrs.src.rev}/NEWS.md";
|
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
|
|
|
mainProgram = "labwc";
|
2023-09-23 19:39:14 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2022-03-08 01:23:19 +00:00
|
|
|
inherit (wayland.meta) platforms;
|
2021-02-05 13:28:59 +00:00
|
|
|
};
|
2022-12-19 01:18:01 +00:00
|
|
|
})
|