Nix 2.30.1
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
BuildEnvironment Struct Reference

Classes

struct  String
 

Public Types

using Array = std::vector<std::string>
 
using Associative = StringMap
 
using Value = std::variant<String, Array, Associative>
 

Public Member Functions

nlohmann::json toJSON () const
 
bool providesStructuredAttrs () const
 
std::string getAttrsJSON () const
 
std::string getAttrsSH () const
 
void toBash (std::ostream &out, const StringSet &ignoreVars) const
 
bool operator== (const BuildEnvironment &other) const
 
std::string getSystem () const
 

Static Public Member Functions

static BuildEnvironment fromJSON (const nlohmann::json &json)
 
static BuildEnvironment parseJSON (std::string_view in)
 
static std::string getString (const Value &value)
 
static Associative getAssociative (const Value &value)
 
static Array getStrings (const Value &value)
 

Public Attributes

std::map< std::string, Value > vars
 
StringMap bashFunctions
 
std::optional< std::pair< std::string, std::string > > structuredAttrs
 

The documentation for this struct was generated from the following file: