#include <path.hh>
|
| | StorePath (std::string_view baseName) |
| | StorePath (const Hash &hash, std::string_view name) |
|
std::string_view | to_string () const noexcept |
|
bool | operator== (const StorePath &other) const noexcept=default |
|
auto | operator<=> (const StorePath &other) const noexcept=default |
| bool | isDerivation () const noexcept |
| void | requireDerivation () const |
|
std::string_view | name () const |
|
std::string_view | hashPart () const |
|
|
static StorePath | random (std::string_view name) |
|
| static constexpr size_t | HashLen = 32 |
| static constexpr size_t | MaxNameLen = 211 |
| | Maximum length of the name, i.e. everything after <hash part>-.
|
|
static constexpr size_t | MaxBasenameLen = HashLen + 1 + MaxNameLen |
| | Maximum length of the basename admitted by the constructor from a string.
|
|
static const StorePath | dummy |
Store path is the fundamental reference type of Nix. A store paths refers to a Store object.
See store/store-path.html for more information on a conceptual level.
◆ StorePath() [1/2]
| nix::StorePath::StorePath |
( |
std::string_view | baseName | ) |
|
◆ StorePath() [2/2]
| nix::StorePath::StorePath |
( |
const Hash & | hash, |
|
|
std::string_view | name ) |
◆ isDerivation()
| bool nix::StorePath::isDerivation |
( |
| ) |
const |
|
noexcept |
Check whether a file name ends with the extension for derivations.
◆ requireDerivation()
| void nix::StorePath::requireDerivation |
( |
| ) |
const |
◆ HashLen
| size_t nix::StorePath::HashLen = 32 |
|
staticconstexpr |
Size of the hash part of store paths, in base-32 characters.
◆ MaxNameLen
| size_t nix::StorePath::MaxNameLen = 211 |
|
staticconstexpr |
Maximum length of the name, i.e. everything after <hash part>-.
It's chosen such that HashLen + MaxNameLen + 1 (dash) + len("/nix/store/") = 255
The documentation for this class was generated from the following files:
- libstore/include/nix/store/path.hh
- libstore/path.cc