gnu: cl-slime-swank: Update to 2.28-0.0cc2e73.
* gnu/packages/lisp-xyz.scm (sbcl-slime-swank): Update to 2.28-0.0cc2e73. [arguments]: Update 'set-fasl-directory' phase. (cl-slime-swank)[arguments]: Remove 'revert-asd-patch' phase. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Change-Id: I2a363582832745e88ce6815a2ff144f29dce9bbc
parent
d62a613bcf
commit
8ea21f7c91
|
@ -3610,18 +3610,20 @@ writing code that contains string literals that contain code themselves.")
|
||||||
(sbcl-package->ecl-package sbcl-pythonic-string-reader))
|
(sbcl-package->ecl-package sbcl-pythonic-string-reader))
|
||||||
|
|
||||||
(define-public sbcl-slime-swank
|
(define-public sbcl-slime-swank
|
||||||
|
(let ((commit "0cc2e736112a0bc2a048ef6efd11dd67e3fbf7ad")
|
||||||
|
(revision "0"))
|
||||||
(package
|
(package
|
||||||
(name "sbcl-slime-swank")
|
(name "sbcl-slime-swank")
|
||||||
(version "2.28")
|
(version (git-version "2.28" revision commit))
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(file-name (git-file-name "cl-slime-swank" version))
|
(file-name (git-file-name "cl-slime-swank" version))
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/slime/slime/")
|
(url "https://github.com/slime/slime/")
|
||||||
(commit (string-append "v" version))))
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1acmm4w1mv1qzpnkgc4wyiilbx8l0dk16sx8wv815ri5ks289rll"))
|
(base32 "0iq9r4007rrnabj290y79i926x2m4j20j6b0x701pkywz926sn02"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
;; The doc folder drags `gawk' into the closure. Doc is already
|
;; The doc folder drags `gawk' into the closure. Doc is already
|
||||||
|
@ -3631,55 +3633,28 @@ writing code that contains string literals that contain code themselves.")
|
||||||
#t))))
|
#t))))
|
||||||
(build-system asdf-build-system/sbcl)
|
(build-system asdf-build-system/sbcl)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:asd-systems '("swank")
|
'(#:asd-systems '("swank" "swank/exts")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'set-fasl-directory
|
(add-after 'unpack 'set-fasl-directory
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(lib-dir (string-append out "/lib/common-lisp/"
|
|
||||||
(%lisp-type)
|
|
||||||
"/slime-swank/")))
|
|
||||||
;; Use the ASDF registry instead of Swank's default that places
|
|
||||||
;; the .fasl files in ~/.slime.
|
|
||||||
(substitute* "swank.asd"
|
|
||||||
(("\\(load \\(asdf::component-pathname f\\)\\)" all)
|
|
||||||
(string-append
|
|
||||||
all "\n"
|
|
||||||
"(setf (symbol-value"
|
|
||||||
"(read-from-string \"swank-loader::*fasl-directory*\"))"
|
|
||||||
"\"" lib-dir "\")")))
|
|
||||||
(substitute* "swank-loader.lisp"
|
(substitute* "swank-loader.lisp"
|
||||||
(("\\(probe-file fasl\\)" all)
|
(("\\(probe-file fasl\\)" all)
|
||||||
;; Do not try to delete Guix store files.
|
;; Do not try to delete Guix store files.
|
||||||
(string-append
|
(string-append
|
||||||
all "\n"
|
all "\n"
|
||||||
" (not (equal (subseq (pathname-directory fasl) 1 3)"
|
" (not (equal (subseq (pathname-directory fasl) 1 3)"
|
||||||
" '(\"gnu\" \"store\"))) ; XXX: GUIX PATCH")))))))))
|
" '(\"gnu\" \"store\"))) ; XXX: GUIX PATCH"))))))))
|
||||||
(home-page "https://github.com/slime/slime")
|
(home-page "https://github.com/slime/slime")
|
||||||
(synopsis "Common Lisp Swank server")
|
(synopsis "Common Lisp Swank server")
|
||||||
(description
|
(description
|
||||||
"This is only useful if you want to start a Swank server in a Lisp
|
"This is only useful if you want to start a Swank server in a Lisp
|
||||||
processes that doesn't run under Emacs. Lisp processes created by
|
processes that doesn't run under Emacs. Lisp processes created by
|
||||||
@command{M-x slime} automatically start the server.")
|
@command{M-x slime} automatically start the server.")
|
||||||
(license (list license:gpl2+ license:public-domain))))
|
(license (list license:gpl2+ license:public-domain)))))
|
||||||
|
|
||||||
(define-public cl-slime-swank
|
(define-public cl-slime-swank
|
||||||
(let ((pkg (sbcl-package->cl-source-package sbcl-slime-swank)))
|
(sbcl-package->cl-source-package sbcl-slime-swank))
|
||||||
(package
|
|
||||||
(inherit pkg)
|
|
||||||
(arguments
|
|
||||||
(substitute-keyword-arguments (package-arguments pkg)
|
|
||||||
((#:phases phases)
|
|
||||||
`(modify-phases ,phases
|
|
||||||
(add-after 'install 'revert-asd-patch
|
|
||||||
;; We do not want to include the Guix patch in the cl- package
|
|
||||||
;; since it would include the sbcl- package in the closure.
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(source-path (string-append out "/share/common-lisp/source/")))
|
|
||||||
(substitute* (string-append source-path "/cl-slime-swank/swank.asd")
|
|
||||||
((".*fasl-directory.*") ""))))))))))))
|
|
||||||
|
|
||||||
(define-public ecl-slime-swank
|
(define-public ecl-slime-swank
|
||||||
(sbcl-package->ecl-package sbcl-slime-swank))
|
(sbcl-package->ecl-package sbcl-slime-swank))
|
||||||
|
|
Reference in New Issue