depot/third_party/nixpkgs/pkgs/applications/window-managers/tinywl/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

32 lines
935 B
Nix

{ lib, stdenv, wlroots, pkg-config, wayland-scanner
, libxkbcommon, pixman, udev, wayland, wayland-protocols
, nixosTests
}:
stdenv.mkDerivation {
pname = "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/tinywl $out/bin
runHook postInstall
'';
passthru.tests = { inherit (nixosTests) tinywl; };
meta = {
homepage = "https://gitlab.freedesktop.org/wlroots/wlroots/tree/master/tinywl";
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
maintainers = with lib.maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
license = lib.licenses.cc0;
inherit (wlroots.meta) platforms;
mainProgram = "tinywl";
};
}