Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
path.hh File Reference
#include <string_view>
#include "types.hh"

Go to the source code of this file.

Classes

class  nix::StorePath
 
struct  std::hash< nix::StorePath >
 

Typedefs

typedef std::set< StorePathnix::StorePathSet
 
typedef std::vector< StorePathnix::StorePaths
 

Functions

void nix::checkName (std::string_view name)
 

Variables

constexpr std::string_view nix::drvExtension = ".drv"
 

Function Documentation

◆ checkName()

void nix::checkName ( std::string_view name)

Check whether a name is a valid store path name.

Exceptions
BadStorePathNameif the name is invalid. The message is of the format "name %s is not valid, for this specific reason".

Variable Documentation

◆ drvExtension

std::string_view nix::drvExtension = ".drv"
constexpr

The file extension of nix::Derivation derivations when serialized into store objects.