[bug#76910,v2,2/4] gnu: Add hyprscroller.

Message ID d0d0ee2a177d78584bd295cf9687cb125b2f697e.1743237168.git.wongandj@icloud.com
State New
Headers
Series Add Hyprland Plugins (Update) |

Commit Message

Andrew Wong March 29, 2025, 8:32 a.m. UTC
  * gnu/packages/wm.scm (hyprscroller): New variable.

Change-Id: I56c9984c7ce013f0ce4b22ec1f5df778fe17f736
---
 gnu/packages/wm.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
  

Patch

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5017344e5b..9b6a78700b 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -521,6 +521,55 @@  (define-public hyprwinwrap
 (define-public xtra-dispatchers
   (hyprland-plugin "xtra-dispatchers" "extra dispatchers"))
 
+(define-public hyprscroller
+  (package
+    (name "hyprscroller")
+    ;; Upstream has no tags, but we can use the commits which add support for
+    ;; the corresponding Hyprland version (see ./hyprscoller.toml).
+    (version "0.48.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/dawsers/hyprscroller")
+             (commit "5b62ca58790f8c2961da79af95efa458f6a814fe")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0bg2gcrdgz68r8anchhb46hn9l5pancr9h83a2fav96bwyhwx2cs"))))
+    (build-system cmake-build-system)
+    (native-inputs (list gcc-14 pkg-config))
+    (inputs (list aquamarine
+                  hyprgraphics
+                  hyprlang
+                  hyprutils
+                  libdrm
+                  libinput
+                  libxkbcommon
+                  mesa
+                  pango
+                  pixman
+                  wayland
+                  hyprland))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)
+          (delete 'check)
+          (replace 'install
+            (lambda* _
+              (install-file "hyprscroller.so"
+                            (string-append #$output "/lib")))))))
+    (home-page "https://github.com/dawsers/hyprscroller")
+    (synopsis "Hyprland plugin for a PaperWM-like scrolling layout")
+    (description
+     "Hyprscroller is a Hyprland layout plugin that creates a window layout
+similar to PaperWM.  The plugin supports gaps, borders, decorations,
+special workspace, full screen modes, overview, marks, pinned columns,
+touchpad gestures, copying/pasting windows, trails/trailmarks, quick
+jump mode, and installation through hyprpm.")
+    (license license:expat)))
+
 (define-public i3status
   (package
     (name "i3status")