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:
parent
cd893a22f5
commit
1ee5dd6d96
18 changed files with 72 additions and 46 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue