#pragma once #include "path.hh" #include "hash.hh" #include namespace nix { class Store; } namespace nix::fetchers { struct TreeInfo { Hash narHash; std::optional revCount; std::optional lastModified; bool operator ==(const TreeInfo & other) const { return narHash == other.narHash && revCount == other.revCount && lastModified == other.lastModified; } StorePath computeStorePath(Store & store) const; static TreeInfo fromJson(const nlohmann::json & json); nlohmann::json toJson() const; }; }