nix: Add --store flag

This is a bit user-friendlier than using $NIX_REMOTE.
This commit is contained in:
Eelco Dolstra 2016-03-21 18:03:36 +01:00
parent 1c5f73f529
commit cebc150b7c
2 changed files with 10 additions and 4 deletions

View file

@ -18,9 +18,8 @@ class Store;
/* A command that require a Nix store. */
struct StoreCommand : virtual Command
{
bool reserveSpace;
StoreCommand(bool reserveSpace = true)
: reserveSpace(reserveSpace) { };
std::string storeUri;
StoreCommand();
void run() override;
virtual void run(ref<Store>) = 0;
};