aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-05-07 14:58:25 +0200
committerEelco Dolstra <edolstra@gmail.com>2018-05-07 14:58:25 +0200
commita1adcdf0878501b512d7ab98d713167f035a330d (patch)
tree1420e20599a2d834430453177aa5366194012abc /src/nix-build/nix-build.cc
parentf02eadfda59e2c98c0638f94a4b5342cf50a2586 (diff)
nix-shell: Only download requested outputs
Fixes #2116.
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index a63b3e07a..21d99878a 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -354,7 +354,7 @@ void mainWrapped(int argc, char * * argv)
// Build or fetch all dependencies of the derivation.
for (const auto & input : drv.inputDrvs)
if (std::all_of(envExclude.cbegin(), envExclude.cend(), [&](const string & exclude) { return !std::regex_search(input.first, std::regex(exclude)); }))
- pathsToBuild.insert(input.first);
+ pathsToBuild.insert(makeDrvPathWithOutputs(input.first, input.second));
for (const auto & src : drv.inputSrcs)
pathsToBuild.insert(src);