diff --git a/src/nix/installables.cc b/src/nix/installables.cc index b60f71b14..c83d6316d 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -267,7 +267,9 @@ Buildables toBuildables(ref 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)); } }