From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:53654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVzFR-0003os-Ic for guix-patches@gnu.org; Wed, 29 May 2019 10:08:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVzFP-00008h-Mf for guix-patches@gnu.org; Wed, 29 May 2019 10:08:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVzFP-00007j-Hh for guix-patches@gnu.org; Wed, 29 May 2019 10:08:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVzFP-0003xc-9n for guix-patches@gnu.org; Wed, 29 May 2019 10:08:07 -0400 Subject: [bug#35991] [PATCH 8/9] gnu: Add sbcl-iolib. Resent-Message-ID: From: Pierre Neidhardt Date: Wed, 29 May 2019 16:07:32 +0200 Message-Id: <20190529140733.31108-8-mail@ambrevar.xyz> In-Reply-To: <20190529140733.31108-1-mail@ambrevar.xyz> References: <20190529140733.31108-1-mail@ambrevar.xyz> 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: 35991@debbugs.gnu.org * gnu/packages/lisp.scm (sbcl-iolib): New variable. --- gnu/packages/lisp.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 34bd0ce0cd..31d2e8d550 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages ed) #:use-module (gnu packages fontutils) @@ -5471,3 +5472,36 @@ and @code{kqueue(2)}), a pathname library and file-system utilities.") (string-append (assoc-ref outputs "out") "/lib/sbcl"))))))) (synopsis "CFFI Groveller for IOLib, a Common Lisp I/O library"))) + +(define-public sbcl-iolib + (package + (inherit sbcl-iolib.asdf) + (name "sbcl-iolib") + (inputs + `(("iolib.asdf" ,sbcl-iolib.asdf) + ("iolib.conf" ,sbcl-iolib.conf) + ("iolib.grovel" ,sbcl-iolib.grovel) + ("iolib.base", sbcl-iolib.base) + ("bordeaux-threads", sbcl-bordeaux-threads) + ("idna", sbcl-idna) + ("swap-bytes", sbcl-swap-bytes) + ("libfixposix", libfixposix))) + (native-inputs + `(("fiveam" ,sbcl-fiveam))) + (arguments + '(#:asd-file "iolib.asd" + #:test-asd-file "iolib.tests.asd" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/syscalls/ffi-functions-unix.lisp" + (("\\(:default \"libfixposix\"\\)") + (string-append + "(:default \"" + (assoc-ref inputs "libfixposix") "/lib/libfixposix\")"))) + ;; Socket tests need Internet access, disable them. + (substitute* "iolib.tests.asd" + (("\\(:file \"sockets\" :depends-on \\(\"pkgdcl\" \"defsuites\"\\)\\)") + ""))))))) + (synopsis "Common Lisp I/O library"))) -- 2.21.0