From bfef3ec855f23930b907fd7700d9d20a820dae66 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Sep 2017 13:14:45 +0200 Subject: [PATCH] nix build: Fix realising a store path --- src/nix/installables.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } }