me
/
guix
Archived
1
0
Fork 0

gnu: guile-readline: Add "guile3.0-readline" variant.

* gnu/packages/guile.scm (make-guile-readline): Add optional 'name'
parameter and honor it.
(guile3.0-readline): New variable.
master
Ludovic Courtès 2020-01-13 21:52:01 +01:00
parent 8fcb607780
commit 7c3b6b2e26
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 2 deletions

View File

@ -307,9 +307,9 @@ without requiring the source code to be rewritten.")
(properties '((ftp-server . "alpha.gnu.org")
(upstream-name . "guile")))))
(define (make-guile-readline guile)
(define* (make-guile-readline guile #:optional (name "guile-readline"))
(package
(name "guile-readline")
(name name)
(version (package-version guile))
(source (package-source guile))
(build-system gnu-build-system)
@ -366,6 +366,9 @@ GNU@tie{}Guile. Use the @code{(ice-9 readline)} module and call its
(define-public guile-readline
(make-guile-readline guile-2.2))
(define-public guile3.0-readline
(make-guile-readline guile-next "guile3.0-readline"))
(define (guile-variant-package-name prefix)
(lambda (name)
"Return NAME with PREFIX instead of \"guile-\", when applicable."