Nix 2.29.0
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 = std::map<std::string, std::string>
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
std::map< std::string, std::string > bashFunctions
std::optional< std::pair< std::string, std::string > > structuredAttrs

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/nix-2.29.0-build/nix-2.29.0/src/nix/develop.cc