about summary refs log tree commit diff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-27T11·14+0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-27T11·14+0200
commitbfef3ec855f23930b907fd7700d9d20a820dae66 (patch)
treebe225f972afe9839e73826794642ed7cd7daff0e /src/nix
parentd1c6e0fe8c98106b85b4bbd5c7a775ff1972d2ff (diff)
nix build: Fix realising a store path
Diffstat (limited to 'src/nix')
-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));
         }
     }