diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-09-10T13·58+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-09-10T20·40+0200 |
commit | ad228d84e56aeb1b5f77ae3bd3f8272f00782a8c (patch) | |
tree | 00e47bf7501c2c95e3790ac4a28e2abb27051c74 /src/nix/command.cc | |
parent | 3ed8290e5331011609de462bda67857837998583 (diff) |
nix build: Only download the requested derivation outputs
Also some refactoring.
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r-- | src/nix/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index 058a7548c893..f69c56896567 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -118,7 +118,7 @@ void StorePathsCommand::run(ref<Store> store) } else { - for (auto & p : toStorePaths(store, NoBuild)) + for (auto & p : toStorePaths(store, NoBuild, installables)) storePaths.push_back(p); if (recursive) { @@ -134,7 +134,7 @@ void StorePathsCommand::run(ref<Store> store) void StorePathCommand::run(ref<Store> store) { - auto storePaths = toStorePaths(store, NoBuild); + auto storePaths = toStorePaths(store, NoBuild, installables); if (storePaths.size() != 1) throw UsageError("this command requires exactly one store path"); |