diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-09-27T11·14+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-09-27T11·14+0200 |
commit | bfef3ec855f23930b907fd7700d9d20a820dae66 (patch) | |
tree | be225f972afe9839e73826794642ed7cd7daff0e /src | |
parent | d1c6e0fe8c98106b85b4bbd5c7a775ff1972d2ff (diff) |
nix build: Fix realising a store path
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/installables.cc | 4 |
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)); } } |