about summary refs log tree commit diff
path: root/pkgs/by-name/la/labwc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-09-23 16:18:52 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-09-23 19:44:14 -0300
commit7bfc02724f018a40e99e8943207c362fb40da82a (patch)
treef03688913ba397b1fc95c9f897c965c46a21a458 /pkgs/by-name/la/labwc
parent5365ecb40b0e6f9cfc94ee58904373a09e856220 (diff)
downloadnixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar.gz
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar.bz2
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar.lz
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar.xz
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.tar.zst
nixlib-7bfc02724f018a40e99e8943207c362fb40da82a.zip
labwc: migrate to by-name
Diffstat (limited to 'pkgs/by-name/la/labwc')
-rw-r--r--pkgs/by-name/la/labwc/package.nix73
1 files changed, 73 insertions, 0 deletions
diff --git a/pkgs/by-name/la/labwc/package.nix b/pkgs/by-name/la/labwc/package.nix
new file mode 100644
index 000000000000..07a1e1d54c35
--- /dev/null
+++ b/pkgs/by-name/la/labwc/package.nix
@@ -0,0 +1,73 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cairo
+, glib
+, libdrm
+, libinput
+, libxcb
+, libxkbcommon
+, libxml2
+, gettext
+, meson
+, ninja
+, pango
+, pkg-config
+, scdoc
+, wayland-scanner
+, wayland
+, wayland-protocols
+, wlroots
+, xcbutilwm
+, xwayland
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "labwc";
+  version = "0.6.4";
+
+  src = fetchFromGitHub {
+    owner = "labwc";
+    repo = "labwc";
+    rev = finalAttrs.version;
+    hash = "sha256-8FMC0tq5Gp5qDPUmoJTCrHEergDMUbiTco17jPTJUgE=";
+  };
+
+  nativeBuildInputs = [
+    gettext
+    meson
+    ninja
+    pkg-config
+    scdoc
+    wayland-scanner
+  ];
+
+  buildInputs = [
+    cairo
+    glib
+    libdrm
+    libinput
+    libxcb
+    libxkbcommon
+    libxml2
+    pango
+    wayland
+    wayland-protocols
+    wlroots
+    xcbutilwm
+    xwayland
+  ];
+
+  mesonFlags = [
+    (lib.mesonEnable "xwayland" true)
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/labwc/labwc";
+    description = "A Wayland stacking compositor, similar to Openbox";
+    changelog = "https://raw.githubusercontent.com/labwc/labwc/${finalAttrs.version}/NEWS.md";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ AndersonTorres ];
+    inherit (wayland.meta) platforms;
+  };
+})