diff options
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index a2c21b6ea..9c47da315 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -41,6 +41,7 @@ enum AttrType { Missing = 3, Misc = 4, Failed = 5, + Bool = 6, }; struct placeholder_t {}; @@ -49,7 +50,7 @@ struct misc_t {}; struct failed_t {}; typedef uint64_t AttrId; typedef std::pair<AttrId, Symbol> AttrKey; -typedef std::variant<std::vector<Symbol>, std::string, placeholder_t, missing_t, misc_t, failed_t> AttrValue; +typedef std::variant<std::vector<Symbol>, std::string, placeholder_t, missing_t, misc_t, failed_t, bool> AttrValue; class AttrCursor : public std::enable_shared_from_this<AttrCursor> { @@ -93,6 +94,8 @@ public: std::string getString(); + bool getBool(); + std::vector<Symbol> getAttrs(); bool isDerivation(); |