about summary refs log tree commit diff
path: root/third_party/nix/src/nix/installables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/installables.cc')
-rw-r--r--third_party/nix/src/nix/installables.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/installables.cc b/third_party/nix/src/nix/installables.cc
index 7ba916f4a6a2..f400841b7c48 100644
--- a/third_party/nix/src/nix/installables.cc
+++ b/third_party/nix/src/nix/installables.cc
@@ -243,11 +243,15 @@ Buildables build(ref<Store> store, RealiseMode mode,
     for (auto& b : i->toBuildables()) {
       if (b.drvPath != "") {
         StringSet outputNames;
-        for (auto& output : b.outputs) outputNames.insert(output.first);
+        for (auto& output : b.outputs) {
+          outputNames.insert(output.first);
+        }
         pathsToBuild.insert(b.drvPath + "!" +
                             concatStringsSep(",", outputNames));
       } else
-        for (auto& output : b.outputs) pathsToBuild.insert(output.second);
+        for (auto& output : b.outputs) {
+          pathsToBuild.insert(output.second);
+        }
       buildables.push_back(std::move(b));
     }
   }
@@ -266,7 +270,9 @@ PathSet toStorePaths(ref<Store> store, RealiseMode mode,
   PathSet outPaths;
 
   for (auto& b : build(store, mode, installables))
-    for (auto& output : b.outputs) outPaths.insert(output.second);
+    for (auto& output : b.outputs) {
+      outPaths.insert(output.second);
+    }
 
   return outPaths;
 }