all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 48996@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#48996] [PATCH v2] gnu: Add slstatus.
Date: Sun, 13 Jun 2021 01:57:51 -0400	[thread overview]
Message-ID: <20210613055751.2638-1-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210613055140.2414-1-rg@raghavgururajan.name>

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

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index f4bf01c5df..4ced54ef0e 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -49,6 +49,46 @@
   #: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





  reply	other threads:[~2021-06-13  5:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-13  5:51 [bug#48996] [PATCH] gnu: Add slstatus Raghav Gururajan via Guix-patches via
2021-06-13  5:57 ` Raghav Gururajan via Guix-patches via [this message]
2021-06-13  6:13 ` [bug#48996] [PATCH v3] " Raghav Gururajan via Guix-patches via
2021-06-16  3:00 ` [bug#48996] [PATCH v4] " Raghav Gururajan via Guix-patches via
2021-06-16  3:14 ` [bug#48996] [PATCH v5] " Raghav Gururajan via Guix-patches via
2021-06-16  6:29 ` [bug#48996] [PATCH v6] " Raghav Gururajan via Guix-patches via
2021-06-16  6:33 ` bug#48996: (no subject) Raghav Gururajan via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210613055751.2638-1-rg@raghavgururajan.name \
    --to=guix-patches@gnu.org \
    --cc=48996@debbugs.gnu.org \
    --cc=rg@raghavgururajan.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.