mirror of
https://github.com/NixOS/nix
synced 2025-07-04 03:01:47 +02:00
Fix flakes
This commit is contained in:
parent
4b313ceb9e
commit
1d36d16086
8 changed files with 83 additions and 65 deletions
|
@ -716,7 +716,7 @@ Expr * EvalState::parseExprFromFile(const SourcePath & path)
|
|||
Expr * EvalState::parseExprFromFile(const SourcePath & path, StaticEnv & staticEnv)
|
||||
{
|
||||
auto packed = packPath(path);
|
||||
auto buffer = path.accessor->readFile(path.path);
|
||||
auto buffer = path.readFile();
|
||||
// readFile hopefully have left some extra space for terminators
|
||||
buffer.append("\0\0", 2);
|
||||
return parse(buffer.data(), buffer.size(), foFile, packed, dirOf(packed), staticEnv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue