about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/wayfire/windecor.nix
diff options
context:
space:
mode:
authorrewine <luhongxu@deepin.org>2023-12-24 00:07:09 +0800
committerrewine <luhongxu@deepin.org>2023-12-25 10:39:43 +0800
commit53d4287952613abc029cdebe28b4210cf56a7409 (patch)
treedd5a3df3fdb1b7497b62ee3c0ec40bc868f6d26c /pkgs/applications/window-managers/wayfire/windecor.nix
parent66bda599f409f9834c6fd6abc602e452a5c16b61 (diff)
wayfirePlugins.windecor: init at 0.8.0
Diffstat (limited to 'pkgs/applications/window-managers/wayfire/windecor.nix')
-rw-r--r--pkgs/applications/window-managers/wayfire/windecor.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wayfire/windecor.nix b/pkgs/applications/window-managers/wayfire/windecor.nix
new file mode 100644
index 0000000000000..d3643aa180954
--- /dev/null
+++ b/pkgs/applications/window-managers/wayfire/windecor.nix
@@ -0,0 +1,63 @@
+{ stdenv
+, lib
+, fetchFromGitLab
+, meson
+, ninja
+, pkg-config
+, wayfire
+, wf-config
+, wayland
+, pango
+, eudev
+, libinput
+, libxkbcommon
+, librsvg
+, libGL
+, xcbutilwm
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "windecor";
+  version = "0.8.0";
+
+  src = fetchFromGitLab {
+    owner = "wayfireplugins";
+    repo = "windecor";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-v0kGT+KrtfFJ/hp1Dr8izKVj6UHhuW6udHFjWt1y9TY=";
+  };
+
+  postPatch = ''
+    substituteInPlace meson.build \
+      --replace "wayfire.get_variable( pkgconfig: 'metadatadir' )" "join_paths(get_option('prefix'), 'share/wayfire/metadata')"
+  '';
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+  ];
+
+  buildInputs = [
+    wayfire
+    wf-config
+    wayland
+    pango
+    eudev
+    libinput
+    libxkbcommon
+    librsvg
+    libGL
+    xcbutilwm
+  ];
+
+  mesonFlags = [ "--sysconfdir=/etc" ];
+
+  meta = {
+    homepage = "https://gitlab.com/wayfireplugins/windecor";
+    description = "A window decoration plugin for wayfire";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ rewine ];
+    inherit (wayfire.meta) platforms;
+  };
+})