about summary refs log tree commit diff
path: root/third_party/nix/src/nix/add-to-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/add-to-store.cc')
-rw-r--r--third_party/nix/src/nix/add-to-store.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/add-to-store.cc b/third_party/nix/src/nix/add-to-store.cc
index 34f6d03963..53641f120e 100644
--- a/third_party/nix/src/nix/add-to-store.cc
+++ b/third_party/nix/src/nix/add-to-store.cc
@@ -3,8 +3,7 @@
 #include "libutil/archive.hh"
 #include "nix/command.hh"
 
-using namespace nix;
-
+namespace nix {
 struct CmdAddToStore final : MixDryRun, StoreCommand {
   Path path;
   std::optional<std::string> namePart;
@@ -47,5 +46,6 @@ struct CmdAddToStore final : MixDryRun, StoreCommand {
     std::cout << fmt("%s\n", info.path);
   }
 };
+}  // namespace nix
 
-static RegisterCommand r1(make_ref<CmdAddToStore>());
+static nix::RegisterCommand r1(nix::make_ref<nix::CmdAddToStore>());