aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-09 16:34:44 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-09 16:34:44 +0200
commitc87840ae14eea84b5910cb0b188ec3fb32cc1466 (patch)
treefbd5a0707c47b3a3d2a96771c1509cedc7afcbad /src/libexpr/eval.hh
parent2fa7f2a56a5c2fe11c1a0daceee5cf0584b69be9 (diff)
Don't allow arbitrary computations in flake attributes
E.g. you can write 'edition = 201909' but not 'edition = 201909 + 0'. Fixes #3075.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 5e976f196..468a826ca 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -338,6 +338,7 @@ private:
/* Return a string representing the type of the value `v'. */
+string showType(ValueType type);
string showType(const Value & v);
/* Decode a context string ‘!<name>!<path>’ into a pair <path,