libstore: Implement boost::hash for StorePath

This commit is contained in:
Sergei Zimmerman
2025-09-22 01:16:52 +03:00
parent 169a368459
commit c71f80b6eb

View File

@@ -108,4 +108,13 @@ struct hash<nix::StorePath>
} // namespace std
namespace nix {
inline std::size_t hash_value(const StorePath & path)
{
return std::hash<StorePath>{}(path);
}
} // namespace nix
JSON_IMPL(nix::StorePath)