2021-07-21 07:28:18 +00:00
|
|
|
{ lib, stdenv, wlroots, pkg-config, wayland-scanner
|
2021-07-03 03:11:41 +00:00
|
|
|
, libxkbcommon, pixman, udev, wayland, wayland-protocols
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "tinywl";
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit (wlroots) version src patches postPatch;
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wayland-scanner ];
|
2021-07-03 03:11:41 +00:00
|
|
|
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
makeFlags = [ "-C" "tinywl" ];
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
2024-01-02 11:29:13 +00:00
|
|
|
cp tinywl/tinywl $out/bin
|
2021-07-03 03:11:41 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://gitlab.freedesktop.org/wlroots/wlroots/tree/master/tinywl";
|
2021-07-21 07:28:18 +00:00
|
|
|
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
|
|
|
|
license = lib.licenses.cc0;
|
2021-07-03 03:11:41 +00:00
|
|
|
inherit (wlroots.meta) platforms;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tinywl";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
}
|