nixpkgs/pkgs/applications/window-managers/tinywl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
868 B
Nix
Raw Normal View History

{ lib, stdenv, wlroots, pkg-config, wayland-scanner
, libxkbcommon, pixman, udev, wayland, wayland-protocols
}:
stdenv.mkDerivation {
pname = "tinywl";
2023-11-23 04:05:30 +00:00
inherit (wlroots) version src patches postPatch;
nativeBuildInputs = [ pkg-config wayland-scanner ];
buildInputs = [ libxkbcommon pixman udev wayland wayland-protocols wlroots ];
2023-11-23 04:05:30 +00:00
makeFlags = [ "-C" "tinywl" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
2023-11-23 04:05:30 +00:00
cp tinywl/tinywl $out/bin
runHook postInstall
'';
2023-11-23 04:05:30 +00:00
meta = {
homepage = "https://gitlab.freedesktop.org/wlroots/wlroots/tree/master/tinywl";
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
2023-11-23 04:05:30 +00:00
maintainers = with lib.maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
license = lib.licenses.cc0;
inherit (wlroots.meta) platforms;
2023-11-27 01:17:53 +00:00
mainProgram = "tinywl";
};
}