From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Patterson Subject: [PATCH 09/12] gnu: Add stumpwm. Date: Tue, 27 Sep 2016 00:15:29 -0400 Message-ID: <20160927041532.27097-10-ajpatter@uwaterloo.ca> References: <20160927041532.27097-1-ajpatter@uwaterloo.ca> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bojo9-00018p-AU for guix-devel@gnu.org; Tue, 27 Sep 2016 00:15:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bojo7-0002tJ-1K for guix-devel@gnu.org; Tue, 27 Sep 2016 00:15:52 -0400 Received: from mailservices.uwaterloo.ca ([129.97.128.141]:45694 helo=minos.uwaterloo.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bojo6-0002t4-RH for guix-devel@gnu.org; Tue, 27 Sep 2016 00:15:50 -0400 In-Reply-To: <20160927041532.27097-1-ajpatter@uwaterloo.ca> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/lisp.scm (stumpwm, stumpwm-sbcl, stumpwm-ecl): New variables. --- gnu/packages/lisp.scm | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 1616b32..1c78875 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -847,3 +847,74 @@ from other CLXes around the net.") #:phases (modify-phases %standard-phases/ecl (delete 'unpack)))))) + +(define-public stumpwm + (package + (name "stumpwm") + (version "0.9.9") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/stumpwm/stumpwm/archive/" + version ".tar.gz")) + (sha256 + (base32 "1fqabij4zcsqg1ywgdv2irp1ys23dwc8ms9ai55lb2i47hgv7z3x")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system asdf-build-system/source) + (propagated-inputs `(("cl-ppcre" ,cl-ppcre) + ("clx" ,clx))) + (synopsis "Window manager written in Common Lisp") + (description "Stumpwm is a window manager written entirely in Common Lisp. +It attempts to be highly customizable while relying entirely on the keyboard +for input. These design decisions reflect the growing popularity of +productive, customizable lisp based systems.") + (home-page "http://github.com/stumpwm/stumpwm") + (license license:gpl2+))) + +(define-public stumpwm-sbcl + (package + (inherit stumpwm) + (name "stumpwm-sbcl") + (build-system asdf-build-system/sbcl) + (inputs `(("stumpwm" ,stumpwm) + ("cl-ppcre-sbcl" ,cl-ppcre-sbcl) + ("clx-sbcl" ,clx-sbcl))) + (propagated-inputs '()) + (outputs '("out" "bin")) + (arguments + '(#:special-dependencies '("sb-posix") + #:entry-program + '((stumpwm:stumpwm) + 0) + #:phases + (modify-phases %standard-phases/sbcl + (add-after 'generate-binary 'create-desktop-file + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (assoc-ref outputs "bin")) + (xsessions "/share/xsessions")) + (mkdir-p (string-append bin xsessions)) + (with-output-to-file + (string-append bin xsessions + "/stumpwm.desktop") + (lambda _ + (display + "[Desktop Entry] +Name=stumpwm +Comment=The Stump Window Manager +Exec=stumpwm +TryExec=stumpwm +Icon= +Type=Application +"))) + #t)))))))) + +(define-public stumpwm-ecl + (package + (inherit stumpwm) + (name "stumpwm-ecl") + (build-system asdf-build-system/ecl) + (inputs `(("stumpwm" ,stumpwm) + ("cl-ppcre-ecl" ,cl-ppcre-ecl) + ("clx-ecl" ,clx-ecl))) + (propagated-inputs '()) + (outputs '("out")))) -- 2.10.0