203c8edcda
The new release comes with breaking changes so we temporarily introduce wlroots_0_13 for packages that don't yet support wlroots 0.14. For the rest of the packages the required upstream patches for this new wlroots release are fetched (if feasible).
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, cairo
|
|
, glib
|
|
, libinput
|
|
, libxml2
|
|
, pango
|
|
, wayland
|
|
, wayland-protocols
|
|
, wlroots
|
|
, libxcb
|
|
, libxkbcommon
|
|
, xwayland
|
|
, libdrm
|
|
, scdoc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "labwc";
|
|
version = "unstable-2021-03-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "johanmalm";
|
|
repo = pname;
|
|
rev = "fddeb74527e5b860d9c1a91a237d390041c758b6";
|
|
sha256 = "0rhniv5j4bypqxxj0nbpa3hclmn8znal9rldv0mrgbizn3wsbs54";
|
|
};
|
|
|
|
patches = [
|
|
# To fix the build with wlroots 0.14:
|
|
(fetchpatch {
|
|
# output: access texture width/height directly
|
|
url = "https://github.com/johanmalm/labwc/commit/892e93dd84c514b4e6f34a0fab01c727edd2d8de.patch";
|
|
sha256 = "1p1pg1kd98727wlcspa2sffl7ijhvsfad6bj2rxsw322q0bz3yrh";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
|
|
buildInputs = [
|
|
cairo
|
|
glib
|
|
libinput
|
|
libxml2
|
|
pango
|
|
wayland
|
|
wayland-protocols
|
|
wlroots
|
|
libxcb
|
|
libxkbcommon
|
|
xwayland
|
|
libdrm
|
|
];
|
|
|
|
mesonFlags = [ "-Dxwayland=enabled" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/johanmalm/labwc";
|
|
description = "Openbox alternative for Wayland";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|