about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-01-12T20·45-0600
committerWill Dietz <w@wdtz.org>2018-01-12T21·05-0600
commit6454ca393a041345fd5b85f97bc452a696abfe4e (patch)
tree1c2fb75af25c4d74fa941b116c6d7fbc804cf1f1
parent74f75c855837bce7f48491e9ce8ac03794e5b40d (diff)
nix log: use pager
-rw-r--r--src/nix/log.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/log.cc b/src/nix/log.cc
index 966ad8b65087..f07ec4e93a16 100644
--- a/src/nix/log.cc
+++ b/src/nix/log.cc
@@ -50,6 +50,7 @@ struct CmdLog : InstallableCommand
 
         auto b = installable->toBuildable();
 
+        RunPager pager;
         for (auto & sub : subs) {
             auto log = b.drvPath != "" ? sub->getBuildLog(b.drvPath) : nullptr;
             for (auto & output : b.outputs) {