summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-06-24 11:54:31 +0000
committerAlyssa Ross <hi@alyssa.is>2021-06-24 12:15:22 +0000
commitd59a508701fca5b6cf090f19abfe35d4b41e03bb (patch)
treef014b2785bd3dbcb18a2b3dd4b517d16f895e245 /pkgs/applications/window-managers
parent9dde08d104a9ce3b22ad375b21d3270a7589fb7a (diff)
downloadnixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar.gz
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar.bz2
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar.lz
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar.xz
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.tar.zst
nixpkgs-d59a508701fca5b6cf090f19abfe35d4b41e03bb.zip
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.
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/tinywl/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/tinywl/default.nix b/pkgs/applications/window-managers/tinywl/default.nix
new file mode 100644
index 00000000000..ea8a92615a4
--- /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;
+  };
+}