gnu: emacs-slime: Don't use unstable tarball.

* gnu/packages/emacs-xyz.scm (emacs-slime)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[arguments]: Add ‘make-git-checkout-writable’ phase.
This commit is contained in:
Tobias Geerinckx-Rice 2019-04-08 23:20:40 +02:00
parent 454866c6e3
commit c234cf6102
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 10 additions and 7 deletions

View File

@ -3230,14 +3230,13 @@ in @code{html-mode}.")
(version "2.23") (version "2.23")
(source (source
(origin (origin
(file-name (string-append name "-" version ".tar.gz")) (method git-fetch)
(method url-fetch) (uri (git-reference
(uri (string-append (url "https://github.com/slime/slime.git")
"https://github.com/slime/slime/archive/v" (commit (string-append "v" version))))
version ".tar.gz")) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0i637n0ragpbj39hqx65nx5k99xf0464c4w6w1qpzykm6z42grky"))))
"01gkrqfpifcx1vipwrbhns2r4s8izp3z1w4p41azc943s1a2d5nc"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(native-inputs (native-inputs
`(("texinfo" ,texinfo))) `(("texinfo" ,texinfo)))
@ -3247,6 +3246,10 @@ in @code{html-mode}.")
"^contrib/Makefile$" "^contrib/README.md$") "^contrib/Makefile$" "^contrib/README.md$")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'make-git-checkout-writable
(lambda _
(for-each make-file-writable (find-files "."))
#t))
(add-before 'install 'configure (add-before 'install 'configure
(lambda* _ (lambda* _
(emacs-substitute-variables "slime.el" (emacs-substitute-variables "slime.el"