about summary refs log tree commit diff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-07-14T12·23+0200
committerEelco Dolstra <edolstra@gmail.com>2017-07-14T16·29+0200
commit6438ba22af57edc054e441053a7c3cd5d48e5597 (patch)
treec4d3f81b34d2031b0e03ab4c5fe0053123097b78 /src/nix/command.hh
parent15e8bd3bcb9b458ad3bc6188bdf531ecb6d65c4a (diff)
StorePathsCommand: Don't build installables
On second though this was annoying. E.g. "nix log nixpkgs.hello" would
build/download Hello first, even though the log can be fetched
directly from the binary cache.

May need to revisit this.
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r--src/nix/command.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index 4800b5c912e4..eb736ce3a3e4 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -80,7 +80,9 @@ struct InstallablesCommand : virtual Args, StoreCommand
 
     std::vector<std::shared_ptr<Installable>> parseInstallables(ref<Store> store, Strings ss);
 
-    PathSet buildInstallables(ref<Store> store, bool dryRun);
+    enum ToStorePathsMode { Build, NoBuild, DryRun };
+
+    PathSet toStorePaths(ref<Store> store, ToStorePathsMode mode);
 
     ref<EvalState> getEvalState();