aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/installables.hh')
-rw-r--r--src/nix/installables.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nix/installables.hh b/src/nix/installables.hh
index 2fd09dbf8..a96b07718 100644
--- a/src/nix/installables.hh
+++ b/src/nix/installables.hh
@@ -3,14 +3,13 @@
#include "util.hh"
#include "path.hh"
#include "flake/eval-cache.hh"
+#include "eval.hh"
#include <optional>
namespace nix {
-struct Value;
struct DrvInfo;
-class EvalState;
struct SourceExprCommand;
struct Buildable
@@ -45,7 +44,7 @@ struct Installable
App toApp(EvalState & state);
- virtual Value * toValue(EvalState & state)
+ virtual std::pair<Value *, Pos> toValue(EvalState & state)
{
throw Error("argument '%s' cannot be evaluated", what());
}
@@ -91,7 +90,7 @@ struct InstallableFlake : InstallableValue
std::vector<flake::EvalCache::Derivation> toDerivations() override;
- Value * toValue(EvalState & state) override;
+ std::pair<Value *, Pos> toValue(EvalState & state) override;
};
}