mirror of
https://github.com/NixOS/nix
synced 2025-07-04 03:01:47 +02:00
Add MemoryInputAccessor for corepkgs
This commit is contained in:
parent
c56e17b718
commit
ffe0dc9a8c
7 changed files with 86 additions and 38 deletions
|
@ -788,7 +788,7 @@ Path EvalState::findFile(SearchPath & searchPath, const std::string_view path, c
|
|||
}
|
||||
|
||||
if (hasPrefix(path, "nix/"))
|
||||
return concatStrings(corepkgsPrefix, path.substr(4));
|
||||
return packPath(SourcePath {corepkgsFS, (std::string) path.substr(3)});
|
||||
|
||||
throw ThrownError({
|
||||
.msg = hintfmt(evalSettings.pureEval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue