~ruther/guix-local

29c1793dc224597aa08af3bd7a0bdc39eb2babf8 — Ludovic Courtès 13 years ago f4b60f5
build-system/gnu: Allow the `source' argument to be #f.

* guix/build-system/gnu.scm (gnu-build): Allow SOURCE to be #f.
1 files changed, 4 insertions(+), 2 deletions(-)

M guix/build-system/gnu.scm
M guix/build-system/gnu.scm => guix/build-system/gnu.scm +4 -2
@@ 204,7 204,7 @@ which could lead to gratuitous input divergence."
  (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 @@ which could lead to gratuitous input divergence."

  (build-expression->derivation store name system
                                builder
                                `(("source" ,source)
                                `(,@(if source
                                        `(("source" ,source))
                                        '())
                                  ,@inputs
                                  ,@(if implicit-inputs?
                                        (parameterize ((%store store))