aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-27 13:14:45 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-27 13:14:45 +0200
commitbfef3ec855f23930b907fd7700d9d20a820dae66 (patch)
treebe225f972afe9839e73826794642ed7cd7daff0e
parentd1c6e0fe8c98106b85b4bbd5c7a775ff1972d2ff (diff)
nix build: Fix realising a store path
-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 b60f71b14..c83d6316d 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));
}
}