mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 06:56:14 +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;
|
class Store;
|
||||||
|
|
||||||
struct ValidPathInfo
|
template<typename Ref>
|
||||||
|
struct PathReferences
|
||||||
|
{
|
||||||
|
std::set<Ref> references;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct ValidPathInfo : PathReferences<StorePath>
|
||||||
{
|
{
|
||||||
StorePath path;
|
StorePath path;
|
||||||
std::optional<StorePath> deriver;
|
std::optional<StorePath> deriver;
|
||||||
Hash narHash;
|
Hash narHash;
|
||||||
StorePathSet references;
|
|
||||||
time_t registrationTime = 0;
|
time_t registrationTime = 0;
|
||||||
uint64_t narSize = 0; // 0 = unknown
|
uint64_t narSize = 0; // 0 = unknown
|
||||||
uint64_t id; // internal use only
|
uint64_t id; // internal use only
|
||||||
|
|
Loading…
Reference in a new issue