From 471cdfdb193357de7d76600ce6a5dcdbdbba1320 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 28 Nov 2015 21:53:51 +0100 Subject: environment: Set build options early on. This fixes a bug whereby some options, such as #:substitute-urls, would be passed to the daemon too late to have an effect. * guix/scripts/environment.scm (build-inputs): Remove call to 'set-build-options-from-command-line*'. (guix-environment): Add call to 'set-build-options-from-command-line' as early as possible. --- guix/scripts/environment.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index fae261733e..2cc5f366a7 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -294,7 +294,6 @@ (define (build-inputs inputs opts) (if dry-run? (return #f) (mbegin %store-monad - (set-build-options-from-command-line* opts) (built-derivations derivations) (return derivations)))))))) @@ -500,6 +499,7 @@ (define (guix-environment . args) (when container? (assert-container-features)) (with-store store + (set-build-options-from-command-line store opts) (run-with-store store (mlet* %store-monad ((inputs (lower-inputs (map (match-lambda -- cgit v1.2.3