mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Fix clang build
This commit is contained in:
parent
12f141391c
commit
02d5c54555
4 changed files with 4 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
namespace nix { class Store; class StorePath; class InputAccessor; }
|
||||
namespace nix { class Store; class StorePath; struct InputAccessor; }
|
||||
|
||||
namespace nix::fetchers {
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ struct MercurialInputScheme : InputScheme
|
|||
const Input & input,
|
||||
const CanonPath & path,
|
||||
std::string_view contents,
|
||||
std::optional<std::string> commitMsg) const
|
||||
std::optional<std::string> commitMsg) const override
|
||||
{
|
||||
auto [isLocal, repoPath] = getActualUrl(input);
|
||||
if (!isLocal)
|
||||
|
|
|
@ -96,7 +96,7 @@ struct PathInputScheme : InputScheme
|
|||
const Input & input,
|
||||
const CanonPath & path,
|
||||
std::string_view contents,
|
||||
std::optional<std::string> commitMsg) const
|
||||
std::optional<std::string> commitMsg) const override
|
||||
{
|
||||
auto absPath = CanonPath(getAbsPath(input)) + path;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue