tinywl: inherit wlroots's patches

This commit is contained in:
rewine 2023-11-23 12:05:30 +08:00
parent 3e1dba866f
commit 88f84ef1b2

View File

@ -4,25 +4,25 @@
stdenv.mkDerivation {
pname = "tinywl";
inherit (wlroots) version src;
sourceRoot = "${wlroots.src.name}/tinywl";
inherit (wlroots) version src patches postPatch;
nativeBuildInputs = [ pkg-config wayland-scanner ];
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];
makeFlags = [ "-C" "tinywl" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp tinywl $out/bin
cp tinywl/tinywl $out/bin
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/swaywm/wlroots/tree/master/tinywl";
meta = {
homepage = "https://gitlab.freedesktop.org/wlroots/wlroots/tree/master/tinywl";
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
maintainers = with maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
license = licenses.cc0;
maintainers = with lib.maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
license = lib.licenses.cc0;
inherit (wlroots.meta) platforms;
mainProgram = "tinywl";
};