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

Fix relative path handling in the parser

This commit is contained in:
Eelco Dolstra 2022-05-12 18:25:36 +02:00
parent cd893a22f5
commit 1ee5dd6d96
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
18 changed files with 72 additions and 46 deletions

View file

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