From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Patterson Subject: Re: [PATCH v2 11/13] gnu: Add cl-stumpwm. Date: Fri, 7 Oct 2016 04:07:41 -0400 Message-ID: <20161007040741.10fe5fb1@uwaterloo.ca> References: <20160927041532.27097-1-ajpatter@uwaterloo.ca> <20161003024139.19975-1-ajpatter@uwaterloo.ca> <20161003024139.19975-12-ajpatter@uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsQC7-0003BT-3v for guix-devel@gnu.org; Fri, 07 Oct 2016 04:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsQC2-0004AC-Bq for guix-devel@gnu.org; Fri, 07 Oct 2016 04:07:49 -0400 Received: from mailservices.uwaterloo.ca ([129.97.128.141]:32817 helo=mailchk-m05.uwaterloo.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsQC2-00049l-3o for guix-devel@gnu.org; Fri, 07 Oct 2016 04:07:46 -0400 Received: from localhost (bas1-jockvale05-1176150086.dsl.bell.ca [70.26.160.70]) (authenticated bits=0) by mailchk-m05.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id u9787f2U023600 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 7 Oct 2016 04:07:44 -0400 In-Reply-To: <20161003024139.19975-12-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 =46rom e4810fc2d9a38b8cf4f4132db040cb6059e14fc3 Mon Sep 17 00:00:00 2001 From: Andy Patterson Date: Sat, 1 Oct 2016 00:32:44 -0400 Subject: [PATCH v3 09/12] gnu: Add cl-stumpwm. * gnu/packages/lisp.scm (cl-stumpwm, sbcl-stumpwm, ecl-stumpwm): New variables. --- gnu/packages/lisp.scm | 66 +++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index ff329bd..06a4337 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -743,3 +743,69 @@ from other CLXes around the net.") =20 (define-public ecl-clx (sbcl-package->ecl-package sbcl-clx)) + +(define-public sbcl-stumpwm + (package + (name "sbcl-stumpwm") + (version "0.9.9") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/stumpwm/stumpwm/archive/" + version ".tar.gz")) + (sha256 + (base32 "1fqabij4zcsqg1ywgdv2irp1ys23dwc8ms9ai55lb2i47hgv7z= 3x")) + (file-name (string-append "stumpwm-" version ".tar.gz")))) + (build-system asdf-build-system/sbcl) + (inputs `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre) + ("sbcl-clx" ,sbcl-clx))) + (outputs '("out" "bin")) + (arguments + '(#:special-dependencies '("sb-posix") + #:phases + (modify-phases %standard-phases + (add-after 'create-symlinks 'build-program + (lambda* (#:key lisp outputs inputs #:allow-other-keys) + (build-program + lisp + (string-append (assoc-ref outputs "bin") "/bin/stumpwm") + #:inputs inputs + #:entry-program '((stumpwm:stumpwm) 0)))) + (add-after 'build-program 'create-desktop-file + (lambda* (#:key outputs lisp binary? #:allow-other-keys) + (let ((output (or (assoc-ref outputs "bin") + (assoc-ref outputs "out"))) + (xsessions "/share/xsessions")) + (mkdir-p (string-append output xsessions)) + (with-output-to-file + (string-append output xsessions + "/stumpwm.desktop") + (lambda _ + (format #t + "[Desktop Entry]~@ + Name=3Dstumpwm~@ + Comment=3DThe Stump Window Manager~@ + Exec=3D~a/bin/stumpwm~@ + TryExec=3D~@*~a/bin/stumpwm~@ + Icon=3D~@ + Type=3DApplication~%" + output))) + #t)))))) + (synopsis "Window manager written in Common Lisp") + (description "Stumpwm is a window manager written entirely in Common L= isp. +It attempts to be highly customizable while relying entirely on the keyboa= rd +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+) + (properties `((ecl-variant . ,(delay ecl-stumpwm)))))) + +(define-public cl-stumpwm + (sbcl-package->cl-source-package sbcl-stumpwm)) + +(define-public ecl-stumpwm + (let ((base (sbcl-package->ecl-package sbcl-stumpwm))) + (package + (inherit base) + (outputs '("out")) + (arguments '())))) --=20 2.10.0