mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
Pull out PathReferences super class
This commit is contained in:
parent
d92d4f85a5
commit
1722ae6ece
1 changed files with 7 additions and 2 deletions
|
@ -20,12 +20,17 @@ namespace nix {
|
|||
|
||||
class Store;
|
||||
|
||||
struct ValidPathInfo
|
||||
template<typename Ref>
|
||||
struct PathReferences
|
||||
{
|
||||
std::set<Ref> references;
|
||||
};
|
||||
|
||||
struct ValidPathInfo : PathReferences<StorePath>
|
||||
{
|
||||
StorePath path;
|
||||
std::optional<StorePath> deriver;
|
||||
Hash narHash;
|
||||
StorePathSet references;
|
||||
time_t registrationTime = 0;
|
||||
uint64_t narSize = 0; // 0 = unknown
|
||||
uint64_t id; // internal use only
|
||||
|
|
Loading…
Reference in a new issue