From d59a508701fca5b6cf090f19abfe35d4b41e03bb Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 24 Jun 2021 11:54:31 +0000 Subject: [PATCH] tinywl: init at 0.13.0 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. --- .../window-managers/tinywl/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/window-managers/tinywl/default.nix diff --git a/pkgs/applications/window-managers/tinywl/default.nix b/pkgs/applications/window-managers/tinywl/default.nix new file mode 100644 index 000000000000..ea8a92615a46 --- /dev/null +++ b/pkgs/applications/window-managers/tinywl/default.nix @@ -0,0 +1,28 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 236b55ba0a1e..0ced3dfa3da8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27192,6 +27192,8 @@ in trayer = callPackage ../applications/window-managers/trayer { }; + tinywl = callPackage ../applications/window-managers/tinywl { }; + tinywm = callPackage ../applications/window-managers/tinywm { }; tree-from-tags = callPackage ../applications/audio/tree-from-tags { };