mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
build-system/gnu: Allow the `source' argument to be #f.
* guix/build-system/gnu.scm (gnu-build): Allow SOURCE to be #f.
This commit is contained in:
parent
f4b60f5f6b
commit
29c1793dc2
1 changed files with 4 additions and 2 deletions
|
@ -204,7 +204,7 @@ (define* (gnu-build store name source inputs
|
|||
(define builder
|
||||
`(begin
|
||||
(use-modules ,@modules)
|
||||
(gnu-build #:source ,(if (derivation-path? source)
|
||||
(gnu-build #:source ,(if (and source (derivation-path? source))
|
||||
(derivation-path->output-path source)
|
||||
source)
|
||||
#:system ,system
|
||||
|
@ -239,7 +239,9 @@ (define guile-for-build
|
|||
|
||||
(build-expression->derivation store name system
|
||||
builder
|
||||
`(("source" ,source)
|
||||
`(,@(if source
|
||||
`(("source" ,source))
|
||||
'())
|
||||
,@inputs
|
||||
,@(if implicit-inputs?
|
||||
(parameterize ((%store store))
|
||||
|
|
Loading…
Reference in a new issue