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

Go to the source code of this file.

Classes

struct  nix::Auto
struct  nix::Specified
struct  nix::Daemon
struct  nix::Local

Typedefs

typedef std::variant< Auto, Specified, Daemon, Local > nix::Variant

Functions

bool nix::operator== (const StoreReference &rhs) const =default
auto nix::operator<=> (const StoreReference &rhs) const =default
std::string nix::render (bool withParams=true) const
std::string nix::to_string () const
std::pair< std::string, StoreReference::Params > nix::splitUriAndParams (const std::string &uri)

Variables

Variant nix::variant
Params nix::params

Function Documentation

◆ render()

std::string nix::render ( bool withParams = true) const

Render the whole store reference as a URI, optionally including parameters.

◆ splitUriAndParams()

std::pair< std::string, StoreReference::Params > nix::splitUriAndParams ( const std::string & uri)

Split URI into protocol+hierarchy part and its parameter set.