mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Encode virtual paths as /nix/store/virtual000<N>
This makes lib.isStorePath in nixpkgs return true for source trees and fixes some cases where /__nix_virtual__ showed up in the NixOS manual.
This commit is contained in:
parent
e424a8b196
commit
a653e98f55
4 changed files with 19 additions and 10 deletions
|
@ -500,6 +500,7 @@ EvalState::EvalState(
|
|||
, valueAllocCache(std::make_shared<void *>(nullptr))
|
||||
, env1AllocCache(std::make_shared<void *>(nullptr))
|
||||
#endif
|
||||
, virtualPathMarker(settings.nixStore + "/virtual00000000000000000")
|
||||
, baseEnv(allocEnv(128))
|
||||
, staticBaseEnv{std::make_shared<StaticEnv>(false, nullptr)}
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue