depot/third_party/nixpkgs/pkgs/by-name/la/labwc/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

88 lines
1.3 KiB
Nix

{
lib,
cairo,
fetchFromGitHub,
gettext,
glib,
libdrm,
libinput,
libpng,
librsvg,
libxcb,
libxkbcommon,
libxml2,
meson,
ninja,
pango,
pkg-config,
scdoc,
stdenv,
wayland,
wayland-protocols,
wayland-scanner,
wlroots_0_18,
xcbutilwm,
xwayland,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "labwc";
version = "0.8.0";
src = fetchFromGitHub {
owner = "labwc";
repo = "labwc";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-1PyPk6r/hXkC0EfOIeDqNGrrpvo616derD9u7i3XjkA=";
};
outputs = [
"out"
"doc"
"man"
];
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
scdoc
wayland-scanner
];
buildInputs = [
cairo
glib
libdrm
libinput
libpng
librsvg
libxcb
libxkbcommon
libxml2
pango
wayland
wayland-protocols
wlroots_0_18
xcbutilwm
xwayland
];
mesonFlags = [ (lib.mesonEnable "xwayland" true) ];
strictDeps = true;
passthru = {
providedSessions = [ "labwc" ];
};
meta = {
homepage = "https://github.com/labwc/labwc";
description = "Wayland stacking compositor, inspired by Openbox";
license = with lib.licenses; [ gpl2Plus ];
mainProgram = "labwc";
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wayland.meta) platforms;
};
})