aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-04 22:29:31 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-04 22:29:31 +0100
commitb81d9d26f50784ab1884e2cc6bc470d5cba91bc9 (patch)
treebf1a03fff022f94271df102d045d6b33e677c2c6 /src/libexpr/eval.hh
parente34b317bbf778efb4e9bee5d34fb2ceb7776de3f (diff)
parentf5a46ef0b1d76d32238f76ab8253f0d2d9fc72c9 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 1cc3c8507..50c6f784e 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -9,6 +9,7 @@
#include "function-trace.hh"
#include <map>
+#include <optional>
#include <unordered_map>
@@ -207,6 +208,9 @@ public:
set with attribute `type = "derivation"'). */
bool isDerivation(Value & v);
+ std::optional<string> tryAttrsToString(const Pos & pos, Value & v,
+ PathSet & context, bool coerceMore = false, bool copyToStore = true);
+
/* String coercion. Converts strings, paths and derivations to a
string. If `coerceMore' is set, also converts nulls, integers,
booleans and lists to a string. If `copyToStore' is set,