GNU bug report logs -
#33753
[PATCH 1/3] gnu: Add stumpwm-contrib.
Previous Next
Reported by: Nam Nguyen <namn <at> berkeley.edu>
Date: Sat, 15 Dec 2018 02:07:01 UTC
Severity: normal
Tags: patch
Done: Oleg Pykhalov <go.wigust <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/lisp.scm (stumpwm-cpu): New variable.
---
gnu/packages/lisp.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index b9e6c0e42..308159982 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -1027,6 +1027,32 @@ productive, customizable lisp based systems.")
code.")
(license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
+(define-public stumpwm-cpu
+ (package (inherit stumpwm-contrib)
+ (name "stumpwm-cpu")
+ (arguments
+ (let ((cat "modeline")
+ (mod "cpu"))
+ (substitute-keyword-arguments (package-arguments stumpwm-contrib)
+ ((#:asd-file _ "") (string-append cat "/" mod "/" mod ".asd"))
+ ((#:asd-system-name _ #f) mod)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'delete-plugins 'copy-plugin-source
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (clisp (string-append out "/share/common-lisp"))
+ (source (string-append clisp "/sbcl-source/"
+ ,mod "/" ,cat "/" ,mod))
+ (dest (string-append clisp "/stumpwm-contrib/"
+ ,mod)))
+ (mkdir-p dest)
+ (copy-recursively source dest))
+ #t)))))))
+ (synopsis "Add CPU info to the StumpWM modeline")
+ (description "Add CPU info to the StumpWM modeline.")
+ (license license:gpl3+)))
+
;; The slynk that users expect to install includes all of slynk's contrib
;; modules. Therefore, we build the base module and all contribs first; then
;; we expose the union of these as `sbcl-slynk'. The following variable
--
2.20.0
This bug report was last modified 5 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.