2021-07-03 16:02:23 +01:00
|
|
|
{ lib, stdenv, wlroots, pkg-config, wayland-scanner
|
2021-06-24 12:54:31 +01:00
|
|
|
, libxkbcommon, pixman, udev, wayland, wayland-protocols
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "tinywl";
|
|
|
|
inherit (wlroots) version src;
|
|
|
|
|
|
|
|
sourceRoot = "source/tinywl";
|
|
|
|
|
2021-07-03 16:02:23 +01:00
|
|
|
nativeBuildInputs = [ pkg-config wayland-scanner ];
|
2021-06-24 12:54:31 +01:00
|
|
|
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp tinywl $out/bin
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/swaywm/wlroots/tree/master/tinywl";
|
2021-07-03 16:02:23 +01:00
|
|
|
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
|
2021-06-24 12:54:31 +01:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
license = licenses.cc0;
|
|
|
|
inherit (wlroots.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|