Subject: bug#48996: closed ()

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 16 Jun 2021 06:34:01 +0000

Your bug report

#48996: [PATCH] gnu: Add slstatus.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
48996: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48996
GNU Bug Tracking System
Contact [email-masked] with problems

From: Raghav Gururajan <[email-masked]>
To: [email-masked]
Date: Wed, 16 Jun 2021 02:33:31 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Pushed as 7959aabbe1.

Subject: [PATCH] gnu: Add slstatus.
From: Raghav Gururajan <[email-masked]>
To: [email-masked]
Cc: Raghav Gururajan <[email-masked]>
Date: Sun, 13 Jun 2021 01:51:40 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/suckless.scm (slstatus): New variable.
---
 gnu/packages/suckless.scm | 43 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index f4bf01c5df..e3d2ca2a17 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -49,6 +49,49 @@
   #:use-module (guix utils)
   #:use-module (guix packages))
 
+(define-public slstatus
+  (let ((commit "84a2f117a32f0796045941260cdc4b69852b41e0")
+        (revision "0"))
+    (package
+      (name "slstatus")
+      (version
+       (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "git://git.suckless.org/slstatus.git")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "063a4fnvsjbc61alnbfdpxy0nwhh9ql9j6s9hkdv12713kv932ds"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f                    ; no target
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (substitute* "config.mk"
+                 ;; To correct PREFIX path.
+                 (("/usr/local")
+                  (assoc-ref outputs "out"))
+                 ;; To correct X11 path.
+                 (("/usr/X11R6")
+                  (assoc-ref inputs "x11"))
+                 ;; To correct CC value.
+                 (("CC = cc")
+                  (string-append "CC = " ,(cc-for-target))))))
+           (delete 'configure))))       ; no target
+      (inputs
+       `(("x11" ,libx11)))
+      (home-page "https://tools.suckless.org/slstatus/")
+      (synopsis "Status Monitor for Window Managers")
+      (description "SlStatus is a suckless status monitor for window managers
+that use WM_NAME or stdin to fill the status bar.")
+      (license license:isc))))
+
 (define-public blind
   (package
     (name "blind")
-- 
2.31.1