diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2016-06-12 00:43:56 +0200 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2016-06-13 18:10:39 +0200 |
commit | 9f5896ccd20f7d6966cec57b9920db919fcda464 (patch) | |
tree | ee1ba250ad7ce6aa1b938541fbb008288a0da36b /bin | |
parent | b4c615fb732ee48b18a513a0e284bbfd789e875c (diff) | |
download | cuirass-9f5896ccd20f7d6966cec57b9920db919fcda464.tar cuirass-9f5896ccd20f7d6966cec57b9920db919fcda464.tar.gz |
cuirass: Build packages outside of 'evaluate' procedure.
* bin/cuirass.in (evaluate): Move 'build-packages' call to ...
(main): ... here.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cuirass.in | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in index 8244e3a..2c0e4c8 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -91,19 +91,15 @@ DIR if required." (format #t "prepending ~s to the load path~%" guixdir) (set! %load-path (cons guixdir %load-path))) (primitive-load spec))) - ((guix-variable 'store 'set-build-options) store - #:use-substitutes? #f) - (build-packages - store - (match ((module-ref %user-module 'hydra-jobs) store '()) - (((names . thunks) ...) - (map (lambda (job thunk) - (format (current-error-port) "evaluating '~a'... " job) - (force-output (current-error-port)) - (make-job (symbol->string job) - (assoc-ref (call-with-time-display thunk) - 'derivation))) - names thunks))))) + (match ((module-ref %user-module 'hydra-jobs) store '()) + (((names . thunks) ...) + (map (lambda (job thunk) + (format (current-error-port) "evaluating '~a'... " job) + (force-output (current-error-port)) + (make-job (symbol->string job) + (assoc-ref (call-with-time-display thunk) + 'derivation))) + names thunks)))) ;;; @@ -133,7 +129,10 @@ DIR if required." (while #t (pull-changes cachedir) (compile cachedir) - (evaluate store cachedir jobfile) + (let ((jobs (evaluate store cachedir jobfile))) + ((guix-variable 'store 'set-build-options) store + #:use-substitutes? #f) + (build-packages store jobs)) (sleep (string->number (option-ref opts 'interval "60"))))) (lambda () ((guix-variable 'store 'close-connection) store)))))))) |