From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXzP4-0006qy-CE for guix-patches@gnu.org; Fri, 14 Dec 2018 21:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXzP1-000647-0v for guix-patches@gnu.org; Fri, 14 Dec 2018 21:10:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXzP0-000641-SR for guix-patches@gnu.org; Fri, 14 Dec 2018 21:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gXzP0-0002vR-Gt for guix-patches@gnu.org; Fri, 14 Dec 2018 21:10:02 -0500 Subject: [bug#33753] [PATCH 2/3] gnu: Add stumpwm-cpu. References: <20181215020600.2713-1-namn@berkeley.edu> In-Reply-To: <20181215020600.2713-1-namn@berkeley.edu> Resent-Message-ID: From: Nam Nguyen Date: Fri, 14 Dec 2018 18:09:07 -0800 Message-Id: <20181215020908.2792-1-namn@berkeley.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33753@debbugs.gnu.org Cc: Nam Nguyen * 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