summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-07-01 15:54:45 +0000
committerAlyssa Ross <hi@alyssa.is>2021-07-09 13:44:48 +0000
commit71d773e563853711f8c60f827384f925c55bc513 (patch)
tree7ed94070d6a9dbc810949ab71fbbcd057f6d1bed
parent88fcb3672c35f194de38439c71a354f8ef0e1681 (diff)
downloadnixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar.gz
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar.bz2
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar.lz
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar.xz
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.tar.zst
nixpkgs-71d773e563853711f8c60f827384f925c55bc513.zip
tinywl: init at 0.11.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.

(cherry picked from commit d59a508701fca5b6cf090f19abfe35d4b41e03bb)
Message-Id: <20210701155446.1306212-2-hi@alyssa.is>
-rw-r--r--pkgs/applications/window-managers/tinywl/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 32 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..4dc50fb8ed4
--- /dev/null
+++ b/pkgs/applications/window-managers/tinywl/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, wlroots, pkg-config
+, libGL, libxkbcommon, pixman, udev, wayland, wayland-protocols
+}:
+
+stdenv.mkDerivation {
+  pname = "tinywl";
+  inherit (wlroots) version src;
+
+  sourceRoot = "source/tinywl";
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [
+    libGL 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 6ba0505cb8a..d9f6adac419 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -23268,6 +23268,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 { };