@@ -49,6 +49,45 @@
#:use-module (guix utils)
#:use-module (guix packages))
+(define-public slstatus
+ ;; No release tarballs yet.
+ (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")