Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::UnkeyedNarInfo Struct Reference
Inheritance diagram for nix::UnkeyedNarInfo:
nix::UnkeyedValidPathInfo nix::NarInfo

Public Member Functions

 UnkeyedNarInfo (UnkeyedValidPathInfo info)
bool operator== (const UnkeyedNarInfo &) const =default
nlohmann::json toJSON (const StoreDirConfig *store, bool includeImpureInfo, PathInfoJsonFormat format) const override
Public Member Functions inherited from nix::UnkeyedValidPathInfo
 UnkeyedValidPathInfo (const UnkeyedValidPathInfo &other)=default
 UnkeyedValidPathInfo (const StoreDirConfig &store, Hash narHash)
 UnkeyedValidPathInfo (std::string storeDir, Hash narHash)
bool operator== (const UnkeyedValidPathInfo &) const noexcept
std::weak_ordering operator<=> (const UnkeyedValidPathInfo &) const noexcept

Static Public Member Functions

static UnkeyedNarInfo fromJSON (const StoreDirConfig *store, const nlohmann::json &json)
Static Public Member Functions inherited from nix::UnkeyedValidPathInfo
static UnkeyedValidPathInfo fromJSON (const StoreDirConfig *store, const nlohmann::json &json)

Public Attributes

std::string url
std::optional< CompressionAlgo > compression
std::optional< Hash > fileHash
uint64_t fileSize = 0
Public Attributes inherited from nix::UnkeyedValidPathInfo
std::string storeDir
std::optional< StorePath > deriver
Hash narHash
StorePathSet references
time_t registrationTime = 0
uint64_t narSize = 0
bool ultimate = false
std::set< Signature > sigs
std::optional< ContentAddress > ca

Member Function Documentation

◆ toJSON()

nlohmann::json nix::UnkeyedNarInfo::toJSON ( const StoreDirConfig * store,
bool includeImpureInfo,
PathInfoJsonFormat format ) const
overridevirtual
Parameters
storeIf non-null, store paths are rendered as full paths. If null, store paths are rendered as base names.
includeImpureInfoIf true, variable elements such as the registration time are included.
formatJSON format version. Version 1 uses string hashes and string content addresses. Version 2 uses structured hashes and structured content addresses.

Reimplemented from nix::UnkeyedValidPathInfo.


The documentation for this struct was generated from the following files:
  • libstore/include/nix/store/nar-info.hh
  • libstore/nar-info.cc