about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/nix/installables.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index b60f71b1488b..c83d6316d3f3 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -267,7 +267,9 @@ Buildables toBuildables(ref<Store> store, RealiseMode mode,
                     outputNames.insert(output.first);
                 pathsToBuild.insert(
                     b.drvPath + "!" + concatStringsSep(",", outputNames));
-            }
+            } else
+                for (auto & output : b.outputs)
+                    pathsToBuild.insert(output.second);
             buildables.push_back(std::move(b));
         }
     }