Subject: [PATCH v2 1/1] gnu: Add xssstate.

From: Steve George <[email-masked]>
Date: Sat, 6 Apr 2024 11:24:50 +0100

From: Ivan Vilata-i-Balaguer <[email-masked]>

* gnu/packages/suckless.scm (xssstate): New variable.

Reviewed-by: Steve George <[email-masked]>

Change-Id: I80a44b979ae987b953dcbdb3979b9b4ad8e30c79
---
 gnu/packages/suckless.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index a907b2fc6b9..f01c6093bc9 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2022 Jai Vetrivelan <[email-masked]>
 ;;; Copyright © 2022 jgart <[email-masked]>
 ;;; Copyright © 2022 Antero Mejr <[email-masked]>
+;;; Copyright © 2022 Ivan Vilata i Balaguer <[email-masked]>
 ;;; Copyright © 2024 Clément Lassieur <[email-masked]>
 ;;; Copyright © 2024 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2024 cage <[email-masked]>
@@ -1361,6 +1362,34 @@ (define-public lib9
       (license (list license:expat ;modifications
                      license:lpl1.02))))) ;original plan9 code
 
+(define-public xssstate
+  (package
+    (name "xssstate")
+    (version "1.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://dl.suckless.org/tools/xssstate-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "04b03jz38pn5qhddg8a9hh01qqzrrdjvsq09qrxj9sx8lq2gbdn4"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f  ; no tests
+       #:make-flags (list (string-append "CC="
+                                         ,(cc-for-target))
+                          (string-append "PREFIX=" %output))
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure))))
+    (inputs (list libxscrnsaver))
+    (home-page "https://tools.suckless.org/x/xssstate/")
+    (synopsis "Simple tool to retrieve the X screensaver state")
+    (description
+     "A utility to retrieve the state of the X screensaver.  These
+states include the idle time, the screensaver state and the length of time
+until the screensaver should be activated.")
+    (license license:x11)))
+
 (define-public 9yacc
   (package
     (inherit lib9)
-- 
2.41.0