mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
d59a508701
tinywl is the wlroots reference compositor. It's very useful when debugging Wayland/wlroots problems as it helps with determining whether an issue is the fault of a compositor or of wlroots.
29 lines
741 B
Nix
29 lines
741 B
Nix
{ lib, stdenv, wlroots, pkg-config
|
|
, libxkbcommon, pixman, udev, wayland, wayland-protocols
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tinywl";
|
|
inherit (wlroots) version src;
|
|
|
|
sourceRoot = "source/tinywl";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
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";
|
|
description = ''"minimum viable product" Wayland compositor based on wlroots.'';
|
|
maintainers = with maintainers; [ qyliss ];
|
|
license = licenses.cc0;
|
|
inherit (wlroots.meta) platforms;
|
|
};
|
|
}
|