Subject: [bug#69371] [PATCH] gnu: Add wmenu.

From: Zheng Junjie <[email-masked]>
Date: Sun, 25 Feb 2024 14:47:39 +0800

* gnu/packages/wm.scm (wmenu): New variable.

Change-Id: I7395a23801471fba6a22a1b44f6c9a19dddd894e
---
 gnu/packages/wm.scm | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index acaa64b9e6..7ea9f32d2d 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -41,7 +41,7 @@
 ;;; Copyright © 2020 B. Wilson <[email-masked]>
 ;;; Copyright © 2020 Niklas Eklund <[email-masked]>
 ;;; Copyright © 2020 Robert Smith <[email-masked]>
-;;; Copyright © 2021, 2023 Zheng Junjie <[email-masked]>
+;;; Copyright © 2021, 2023, 2024 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2021 Sharlatan Hellseher <[email-masked]>
 ;;; Copyright © 2021 qblade <[email-masked]>
 ;;; Copyright © 2021 lasnesne <[email-masked]>
@@ -1752,6 +1752,35 @@ (define-public wlroots-0.16
     (propagated-inputs (modify-inputs (package-propagated-inputs wlroots)
                          (delete libdisplay-info)))))
 
+(define-public wmenu
+  (package
+    (name "wmenu")
+    (version "0.1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~adnano/wmenu")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0cdjwgkv8zkbdhni5awy1njcyggn1jxxzmacws29xfpx7pnxzjay"))))
+    (build-system meson-build-system)
+    (native-inputs (append (if (%current-target-system)
+                               ;; for wayland-scanner
+                               (list pkg-config-for-build
+                                     wayland)
+                               '())
+                           (list pkg-config scdoc)))
+    (inputs (list cairo pango wayland libxkbcommon wayland-protocols))
+    (home-page "https://git.sr.ht/~adnano/wmenu")
+    (synopsis "wmenu is an efficient dynamic menu for Sway and wlroots based
+Wayland compositors.")
+    (description "wmenu is an efficient dynamic menu for Sway and wlroots based
+Wayland compositors.  It provides a Wayland-native dmenu replacement which
+maintains the look and feel of dmenu.")
+    (license license:expat)))
+
 (define-public sway
   (package
     (name "sway")

base-commit: 05bbe9993f687da1fd684a31474c621f2a1c37b2
-- 
2.41.0