1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 22:01:15 +02:00

Fix clang build

This commit is contained in:
Eelco Dolstra 2023-02-17 15:20:06 +01:00
parent 12f141391c
commit 02d5c54555
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ std::string EvalState::encodePath(const SourcePath & path)
to /nix/store/virtual000...<N>) and we should deprecate it
eventually. So print a warning about use of an encoded path in
decodePath(). */
return path.accessor == rootFS
return path.accessor == ref<InputAccessor>(rootFS)
? path.path.abs()
: fmt("%s%08x-source%s", virtualPathMarker, path.accessor->number, path.path.absOrEmpty());
}