mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
parent
16c6c6c963
commit
983efdbde4
2 changed files with 8 additions and 0 deletions
|
@ -520,6 +520,12 @@ path_start
|
|||
$$ = new ExprPath(path);
|
||||
}
|
||||
| HPATH {
|
||||
if (evalSettings.pureEval) {
|
||||
throw Error(
|
||||
"the path '%s' can not be resolved in pure mode",
|
||||
std::string_view($1.p, $1.l)
|
||||
);
|
||||
}
|
||||
Path path(getHome() + std::string($1.p + 1, $1.l - 1));
|
||||
$$ = new ExprPath(path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue