Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
path.hh File Reference
#include <string_view>
#include "nix/util/types.hh"
#include "nix/util/json-impls.hh"
#include "nix/util/json-non-null.hh"

Go to the source code of this file.

Classes

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

Typedefs

typedef std::set< StorePath > nix::StorePathSet
typedef std::vector< StorePath > nix::StorePaths

Functions

 nix::MakeError (BadStorePath, Error)
 nix::MakeError (BadStorePathName, BadStorePath)
void nix::checkName (std::string_view name)
std::size_t nix::hash_value (const StorePath &path)

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::Derivation when serialized into store objects.