Skip to content
Snippets Groups Projects
Commit b9b53e67 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

evaluate: Really support 'build-derivations' RPCs.

Fixes a thinko introduced in
1872dd95.

* bin/evaluate.in (main): Make sure 'real-build-things' is bound.
parent 38d367d7
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,12 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
;; during evaluation, so use a sledgehammer to catch such problems.
;; An exception, though, is the evaluation of Guix itself, which
;; requires building a "trampoline" program.
(set! build-things
(lambda (store . args)
(simple-format stderr "warning: building things during evaluation~%")
(simple-format stderr "'build-things' arguments: ~S~%" args)
(apply real-build-things store args)))
(let ((real-build-things build-things))
(set! build-things
(lambda (store . args)
(simple-format stderr "warning: building things during evaluation~%")
(simple-format stderr "'build-things' arguments: ~S~%" args)
(apply real-build-things store args))))
(parameterize ((%use-substitutes? (assoc-ref spec #:use-substitutes?)))
(unless (string-null? guix-package-path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment