about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-01T12·43+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-01T12·43+0200
commitb986c7f8b14c1270e012f22183737ebbaa33173d (patch)
tree15b95709bfd43fa7bcc7b52c18f45ac08c0d24fa /src/libstore/build.cc
parent227a48f86f8c26c495783c5946bb75c2819bb7ac (diff)
Pass verbosity level to build hook
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 01a3203dd909..8b869063d5e1 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -614,10 +614,11 @@ HookInstance::HookInstance()
             throw SysError("dupping builder's stdout/stderr");
 
         Strings args = {
-            baseNameOf(buildHook),
+            baseNameOf(settings.buildHook),
             settings.thisSystem,
-            (format("%1%") % settings.maxSilentTime).str(),
-            (format("%1%") % settings.buildTimeout).str()
+            std::to_string(settings.maxSilentTime),
+            std::to_string(settings.buildTimeout),
+            std::to_string(verbosity)
         };
 
         execv(buildHook.c_str(), stringsToCharPtrs(args).data());