about summary refs log tree commit diff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-16T13·25+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-16T13·25+0100
commit558eda01154d47b3c88983576eedb582185b2201 (patch)
tree7771c3d52fe63335115c6436ad8c6f007c8e0e55 /src/nix/command.hh
parent287084d688c3316d5840a9a7b5b2dff29b3dda94 (diff)
nix copy: Make -r option use the "from" store
Previously, we tried to compute the closure in the local store, which
obviously doesn't work.
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r--src/nix/command.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index a29cdcf7f50f..fa6c21abf8ad 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -33,6 +33,7 @@ struct StoreCommand : virtual Command
     std::string storeUri;
     StoreCommand();
     void run() override;
+    virtual ref<Store> createStore();
     virtual void run(ref<Store>) = 0;
 };