Subject: [PATCH] gnu: Add lemonbar package

From: Noodles! <[email-masked]>
Date: Mon, 13 May 2019 04:57:21 +0000

---
 gnu/packages/wm.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 0a05ff4ae..6c727e36c 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <[email-masked]>
 ;;; Copyright © 2018 Meiyo Peng <[email-masked]>
 ;;; Copyright © 2019 Rutger Helling <[email-masked]>
+;;; Copyright © 2019 Noodles! <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1087,6 +1088,42 @@ customizable status bars for their desktop environment.  It has built-in
 functionality to display information about the most commonly used services.")
     (license license:expat)))
 
+(define-public lemonbar
+  (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
+        (revision "1"))
+    (package
+     (name "lemonbar")
+     (version (git-version "1.3" revision commit))
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://github.com/LemonBoy/bar")
+                     (commit commit)))
+               (file-name (git-file-name name version))
+               (sha256
+                (base32
+                 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
+     (build-system gnu-build-system)
+     (arguments
+      '(#:tests? #f
+        #:make-flags (list "CC=gcc"
+                      (string-append "PREFIX=" %output))
+        #:phases
+        (modify-phases %standard-phases
+          (delete 'configure))))
+     (inputs
+      `(("libxcb" ,libxcb)))
+     (native-inputs
+      `(("perl" ,perl)))
+     (home-page "https://github.com/LemonBoy/bar")
+     (synopsis "Featherweight status bar")
+     (description
+      "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
+bar entirely based on XCB.  Provides full UTF-8 support, basic
+formatting, RandR and Xinerama support and EWMH compliance without
+wasting your precious memory.")
+     (license license:x11))))
+
 (define-public wlroots
   (package
     (name "wlroots")
-- 
2.17.1