2016-02-16 17:38:44 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "types.hh"
|
|
|
|
#include "hash.hh"
|
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct NarInfo : ValidPathInfo
|
|
|
|
{
|
|
|
|
std::string url;
|
|
|
|
std::string compression;
|
|
|
|
Hash fileHash;
|
|
|
|
uint64_t fileSize = 0;
|
|
|
|
std::string system;
|
|
|
|
|
2019-12-05 20:11:09 +02:00
|
|
|
NarInfo() = delete;
|
|
|
|
NarInfo(StorePath && path) : ValidPathInfo(std::move(path)) { }
|
2016-02-16 17:38:44 +02:00
|
|
|
NarInfo(const ValidPathInfo & info) : ValidPathInfo(info) { }
|
2016-06-01 15:49:12 +03:00
|
|
|
NarInfo(const Store & store, const std::string & s, const std::string & whence);
|
2016-02-16 17:38:44 +02:00
|
|
|
|
2019-12-05 20:11:09 +02:00
|
|
|
std::string to_string(const Store & store) const;
|
2016-02-16 17:38:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|