[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/13] gnu: sbcl: Honour XDG_DATA_DIRS.
From: |
Andy Patterson |
Subject: |
[PATCH v2 02/13] gnu: sbcl: Honour XDG_DATA_DIRS. |
Date: |
Sun, 2 Oct 2016 22:41:28 -0400 |
* gnu/packages/lisp.scm (asdf-substitutions): New variable.
(sbcl) [source]: Add snippet.
[native-search-paths]: Add XDG_DATA_DIRS.
---
gnu/packages/lisp.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 439433a..1311a7d 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -47,6 +47,15 @@
#:use-module (ice-9 match)
#:use-module (srfi srfi-1))
+(define (asdf-substitutions lisp)
+ `((("\\(,dir \"systems/\"\\)\\)")
+ (format #f
+ "(,dir \"~a-bundle-systems\")))
+
+ ,@(loop :for dir :in (xdg-data-dirs \"common-lisp/\")
+ :collect `(:directory (,dir \"systems\"))"
+ ,lisp))))
+
(define-public gcl
(package
(name "gcl")
@@ -226,7 +235,12 @@ an interpreter, a compiler, a debugger, and much more.")
(uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
version "-source.tar.bz2"))
(sha256
- (base32 "0fjdqnb2rsm2vi9794ywp27jr239ddvzc4xfr0dk49jd4v7p2kc5"))))
+ (base32 "0fjdqnb2rsm2vi9794ywp27jr239ddvzc4xfr0dk49jd4v7p2kc5"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Add sbcl-bundle-systems to the asdf registry
+ `(substitute* "contrib/asdf/asdf.lisp"
+ ,@(asdf-substitutions name)))))
(build-system gnu-build-system)
(outputs '("out" "doc"))
;; Bootstrap with CLISP.
@@ -315,6 +329,10 @@ an interpreter, a compiler, a debugger, and much more.")
#t))))
;; No 'check' target, though "make.sh" (build phase) runs tests.
#:tests? #f))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "XDG_DATA_DIRS")
+ (files '("share")))))
(home-page "http://www.sbcl.org/")
(synopsis "Common Lisp implementation")
(description "Steel Bank Common Lisp (SBCL) is a high performance Common
--
2.10.0
- [PATCH v2 00/13]: Add asdf-build-system., Andy Patterson, 2016/10/02
- [PATCH v2 02/13] gnu: sbcl: Honour XDG_DATA_DIRS.,
Andy Patterson <=
- [PATCH v2 03/13] gnu: ecl: Honour XDG_DATA_DIRS., Andy Patterson, 2016/10/02
- [PATCH v2 05/13] gnu: Add cl-fiveam., Andy Patterson, 2016/10/02
- [PATCH v2 04/13] gnu: Add cl-alexandria., Andy Patterson, 2016/10/02
- [PATCH v2 07/13] gnu: Add cl-trivial-gray-streams., Andy Patterson, 2016/10/02
- [PATCH v2 06/13] gnu: Add cl-bordeaux-threads., Andy Patterson, 2016/10/02
- [PATCH v2 09/13] gnu: Add cl-ppcre., Andy Patterson, 2016/10/02
- [PATCH v2 13/13] gnu: Add sbcl-stumpwm-with-slynk., Andy Patterson, 2016/10/02
- [PATCH v2 08/13] gnu: Add cl-flexi-streams., Andy Patterson, 2016/10/02
- [PATCH v2 12/13] gnu: Add cl-slynk., Andy Patterson, 2016/10/02