about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-07-03T11·08+0200
committerGitHub <noreply@github.com>2018-07-03T11·08+0200
commit91f49ca1086b43a55e08dfccf1c49eb512a2abc9 (patch)
tree7fc31bd837cec4cc077a5989eaf6e530d56ca88e
parentdd98683e65f4f05bd0979df02b477bf96599ba04 (diff)
parent8a98ffc276989700f55847e212837d93d6898add (diff)
Merge pull request #2265 from Ma27/nix-why-depends-pager
nix why-depends: render output into $PAGER
-rw-r--r--src/nix/why-depends.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/why-depends.cc b/src/nix/why-depends.cc
index 17e0595ae887..325a2be0a793 100644
--- a/src/nix/why-depends.cc
+++ b/src/nix/why-depends.cc
@@ -2,6 +2,7 @@
 #include "store-api.hh"
 #include "progress-bar.hh"
 #include "fs-accessor.hh"
+#include "shared.hh"
 
 #include <queue>
 
@@ -237,6 +238,7 @@ struct CmdWhyDepends : SourceExprCommand
 
             visitPath(node.path);
 
+            RunPager pager;
             for (auto & ref : refs) {
                 auto hash = storePathToHash(ref.second->path);