aboutsummaryrefslogtreecommitdiff
path: root/src/nix/prefetch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/prefetch.cc')
-rw-r--r--src/nix/prefetch.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/prefetch.cc b/src/nix/prefetch.cc
index 0b04a04e6..b99cd5dd0 100644
--- a/src/nix/prefetch.cc
+++ b/src/nix/prefetch.cc
@@ -4,11 +4,11 @@
#include "shared.hh"
#include "store-api.hh"
#include "filetransfer.hh"
-#include "finally.hh"
#include "tarfile.hh"
#include "attr-path.hh"
-#include "eval-inline.hh"
+#include "eval-inline.hh" // IWYU pragma: keep
#include "legacy.hh"
+#include "terminal.hh"
#include <nlohmann/json.hpp>
@@ -180,7 +180,7 @@ static int main_nix_prefetch_url(int argc, char * * argv)
if (args.size() > 2)
throw UsageError("too many arguments");
- if (isatty(STDERR_FILENO))
+ if (isOutputARealTerminal(StandardOutputStream::Stderr))
setLogFormat(LogFormat::bar);
auto store = openStore();