build-system/{gnu,trivial-build}: Fix handling of #:guile argument.
* guix/build-system/gnu.scm (gnu-build)[guile-for-build]: Check whether GUILE matches string? before checking whether it matches derivation-path?. * guix/build-system/trivial.scm (trivial-build)[guile-for-build]: Likewise.
This commit is contained in:
parent
2143cf7a50
commit
81c7948d9a
|
@ -151,14 +151,14 @@ package if GUILE is #f or omitted."
|
|||
|
||||
(define guile-for-build
|
||||
(match guile
|
||||
((? package?)
|
||||
(package-derivation store guile system))
|
||||
((and (? string?) (? derivation-path?))
|
||||
guile)
|
||||
(#f ; the default
|
||||
(let* ((distro (resolve-interface '(distro packages base)))
|
||||
(guile (module-ref distro 'guile-final)))
|
||||
(package-derivation store guile system)))
|
||||
((? package?)
|
||||
(package-derivation store guile system))
|
||||
((? derivation-path?)
|
||||
guile)))
|
||||
(package-derivation store guile system)))))
|
||||
|
||||
(build-expression->derivation store name system
|
||||
builder
|
||||
|
|
|
@ -31,14 +31,14 @@
|
|||
ignored."
|
||||
(define guile-for-build
|
||||
(match guile
|
||||
((? package?)
|
||||
(package-derivation store guile system))
|
||||
((and (? string?) (? derivation-path?))
|
||||
guile)
|
||||
(#f ; the default
|
||||
(let* ((distro (resolve-interface '(distro packages base)))
|
||||
(guile (module-ref distro 'guile-final)))
|
||||
(package-derivation store guile system)))
|
||||
((? package?)
|
||||
(package-derivation store guile system))
|
||||
((? derivation-path?)
|
||||
guile)))
|
||||
(package-derivation store guile system)))))
|
||||
|
||||
(build-expression->derivation store name system builder inputs
|
||||
#:outputs outputs
|
||||
|
|
Loading…
Reference in New Issue