mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
26 lines
476 B
C++
26 lines
476 B
C++
#pragma once
|
|
|
|
#include "path.hh"
|
|
|
|
namespace nix { class Store; }
|
|
|
|
namespace nix::fetchers {
|
|
|
|
struct TreeInfo
|
|
{
|
|
Hash narHash;
|
|
std::optional<uint64_t> revCount;
|
|
std::optional<time_t> lastModified;
|
|
|
|
bool operator ==(const TreeInfo & other) const
|
|
{
|
|
return
|
|
narHash == other.narHash
|
|
&& revCount == other.revCount
|
|
&& lastModified == other.lastModified;
|
|
}
|
|
|
|
StorePath computeStorePath(Store & store) const;
|
|
};
|
|
|
|
}
|