1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 03:01:47 +02:00

Work around clang/libc++ issue

This commit is contained in:
Eelco Dolstra 2024-12-11 20:59:59 +01:00
parent d2e1d4916a
commit b167e2c415
3 changed files with 10 additions and 4 deletions

View file

@ -49,7 +49,10 @@ struct FlakeRef
bool operator ==(const FlakeRef & other) const = default;
auto operator <=>(const FlakeRef &) const = default;
bool operator <(const FlakeRef & other) const
{
return std::tie(input, subdir) < std::tie(other.input, other.subdir);
}
FlakeRef(fetchers::Input && input, const Path & subdir)
: input(std::move(input)), subdir(subdir)