[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48996] [PATCH] gnu: Add slstatus.
From: |
Raghav Gururajan |
Subject: |
[bug#48996] [PATCH] gnu: Add slstatus. |
Date: |
Sun, 13 Jun 2021 01:51:40 -0400 |
* 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
- [bug#48996] [PATCH] gnu: Add slstatus.,
Raghav Gururajan <=
- [bug#48996] [PATCH v2] gnu: Add slstatus., Raghav Gururajan, 2021/06/13
- [bug#48996] [PATCH v3] gnu: Add slstatus., Raghav Gururajan, 2021/06/13
- [bug#48996] [PATCH v4] gnu: Add slstatus., Raghav Gururajan, 2021/06/15
- [bug#48996] [PATCH v5] gnu: Add slstatus., Raghav Gururajan, 2021/06/15
- [bug#48996] [PATCH v6] gnu: Add slstatus., Raghav Gururajan, 2021/06/16
- bug#48996: (no subject), Raghav Gururajan, 2021/06/16