Nix
2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nar-info.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
lix/libutil/types.hh
"
5
#include "
lix/libutil/hash.hh
"
6
#include "
lix/libstore/path-info.hh
"
7
8
namespace
nix {
9
10
class
Store;
11
12
struct
NarInfo
:
ValidPathInfo
13
{
14
std::string url;
15
std::string compression;
16
std::optional<Hash> fileHash;
17
uint64_t fileSize = 0;
18
19
NarInfo
() =
delete
;
20
NarInfo
(
const
Store
& store, std::string && name,
ContentAddressWithReferences
&&
ca
,
Hash
narHash
)
21
:
ValidPathInfo
(store, std::move(name), std::move(
ca
),
narHash
)
22
{ }
23
NarInfo
(
StorePath
&& path,
Hash
narHash
) :
ValidPathInfo
(std::move(path),
narHash
) { }
24
NarInfo
(
const
ValidPathInfo
& info) :
ValidPathInfo
(info) { }
25
NarInfo
(
const
Store
& store,
const
std::string_view & s,
const
std::string_view & whence);
26
27
std::string to_string(
const
Store
& store)
const
;
28
};
29
30
}
nix::StorePath
Definition
path.hh:21
nix::Store
Definition
store-api.hh:195
path-info.hh
hash.hh
nix::ContentAddressWithReferences
Definition
content-address.hh:242
nix::Hash
Definition
hash.hh:32
nix::NarInfo
Definition
nar-info.hh:13
nix::UnkeyedValidPathInfo::ca
std::optional< ContentAddress > ca
Definition
path-info.hh:72
nix::UnkeyedValidPathInfo::narHash
Hash narHash
Definition
path-info.hh:41
nix::ValidPathInfo
Definition
path-info.hh:83
types.hh
lix
libstore
nar-info.hh
Generated by
1.10.0