mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
e9efbc0bbb
This adds a very minimalistic (in terms of functionality and dependencies) test for wlroots, Wayland, and related packages. The Sway test covers more functionality and packages (e.g. XWayland) but this test has tree advantages: - Less dependencies: Much fewer rebuilds are required when testing core changes that need to go through staging. - Testing wlroots updates: The Sway package isn't immediately updated after a new wlroots version is released and a lot of other packages depend on wlroots as well. - Determining whether a bug only affects Sway or wlroots/TinyWL as well.
29 lines
803 B
Nix
29 lines
803 B
Nix
{ lib, stdenv, wlroots, pkg-config, wayland-scanner
|
|
, libxkbcommon, pixman, udev, wayland, wayland-protocols
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tinywl";
|
|
inherit (wlroots) version src;
|
|
|
|
sourceRoot = "source/tinywl";
|
|
|
|
nativeBuildInputs = [ pkg-config wayland-scanner ];
|
|
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 = ''A "minimum viable product" Wayland compositor based on wlroots'';
|
|
maintainers = with maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
|
|
license = licenses.cc0;
|
|
inherit (wlroots.meta) platforms;
|
|
};
|
|
}
|