--- a/guix/scripts.scm +++ b/guix/scripts.scm @@ -22,6 +22,7 @@ #:use-module (guix utils) #:use-module (guix ui) #:use-module (guix store) + #:use-module (guix grafts) #:use-module (guix monads) #:use-module (guix packages) #:use-module (guix derivations) @@ -105,11 +106,14 @@ true." #:rest build-options) "Build PACKAGE using BUILD-OPTIONS acceptable by 'set-build-options'. Show what and how will/would be built." - (mbegin %store-monad + (mlet %store-monad ((grafting? ((lift0 %graft? %store-monad)))) (apply set-build-options* #:use-substitutes? use-substitutes? (strip-keyword-arguments '(#:dry-run?) build-options)) - (mlet %store-monad ((derivation (package->derivation package))) + (mlet %store-monad ((derivation (package->derivation package + #:graft? + (and (not dry-run?) + grafting?)))) (mbegin %store-monad (maybe-build (list derivation) #:use-substitutes? use-substitutes?