aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r--src/nix/command.hh9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index 00eb46903..a954a7d04 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -3,17 +3,12 @@
#include "args.hh"
#include "common-eval-args.hh"
#include "path.hh"
+#include "eval.hh"
namespace nix {
extern std::string programPath;
-struct Value;
-class Bindings;
-class EvalState;
-struct Pos;
-class Store;
-
/* A command that requires a Nix store. */
struct StoreCommand : virtual Command
{
@@ -48,7 +43,7 @@ struct Installable
Buildable toBuildable();
- virtual Value * toValue(EvalState & state)
+ virtual std::pair<Value *, Pos> toValue(EvalState & state)
{
throw Error("argument '%s' cannot be evaluated", what());
}