Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::StorePath Class Reference

#include <path.hh>

Collaboration diagram for nix::StorePath:
[legend]

Public Member Functions

 StorePath (std::string_view baseName)
 
 StorePath (const Hash &hash, std::string_view name)
 
std::string_view to_string () const
 
bool operator< (const StorePath &other) const
 
bool operator== (const StorePath &other) const
 
bool operator!= (const StorePath &other) const
 
bool isDerivation () const
 
std::string_view name () const
 
std::string_view hashPart () const
 

Static Public Member Functions

static StorePath random (std::string_view name)
 

Static Public Attributes

static constexpr size_t HashLen = 32
 
static constexpr size_t MaxPathLen = 211
 
static StorePath dummy
 

Detailed Description

Store path is the fundamental reference type of Nix. A store paths refers to a Store object.

See glossary.html::gloss-store-path for more information on a conceptual level.

Member Function Documentation

◆ isDerivation()

bool nix::StorePath::isDerivation ( ) const

Check whether a file name ends with the extension for derivations.

Member Data Documentation

◆ HashLen

constexpr size_t nix::StorePath::HashLen = 32
staticconstexpr

Size of the hash part of store paths, in base-32 characters.


The documentation for this class was generated from the following files: