summary refs log tree commit diff
path: root/pkgs/applications/window-managers/tinywl/default.nix
blob: b89d9dafd900e775d0c6ce9c35f6409cecb57108 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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;
  };
}