1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 14:53:16 +02:00

Checkpoint

This commit is contained in:
Eelco Dolstra 2022-03-01 19:08:20 +01:00
parent 00b0fb27c1
commit 06c1edf889
18 changed files with 134 additions and 120 deletions

View file

@ -121,9 +121,13 @@ struct ExprString : Expr
struct ExprPath : Expr
{
std::string s;
std::string s; // FIXME: remove
Value v;
ExprPath(std::string s) : s(std::move(s)) { v.mkPath(this->s.c_str()); };
ExprPath(InputAccessor & accessor, std::string s)
: s(std::move(s))
{
v.mkPath({accessor, this->s});
}
COMMON_METHODS
Value * maybeThunk(EvalState & state, Env & env);
};