Nix 2.29.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
Common Struct Reference
Inheritance diagram for Common:
CmdDevelop CmdPrintDevEnv

Public Member Functions

std::string makeRcScript (ref< Store > store, const BuildEnvironment &buildEnvironment, const std::filesystem::path &tmpDir, const std::filesystem::path &outputsDir=std::filesystem::path { std::filesystem::current_path() }/"outputs")
void fixupStructuredAttrs (PathViewNG::string_view ext, const std::string &envVar, const std::string &content, StringMap &rewrites, const BuildEnvironment &buildEnvironment, const std::filesystem::path &tmpDir)
Strings getDefaultFlakeAttrPaths () override
Strings getDefaultFlakeAttrPathPrefixes () override
StorePath getShellOutPath (ref< Store > store, ref< Installable > installable)
std::pair< BuildEnvironment, std::string > getBuildEnvironment (ref< Store > store, ref< Installable > installable)

Public Attributes

StringSet ignoreVars
std::vector< std::pair< std::string, std::string > > redirects

Member Function Documentation

◆ fixupStructuredAttrs()

void Common::fixupStructuredAttrs ( PathViewNG::string_view ext,
const std::string & envVar,
const std::string & content,
StringMap & rewrites,
const BuildEnvironment & buildEnvironment,
const std::filesystem::path & tmpDir )
inline

Replace the value of NIX_ATTRS_*_FILE (/build/.attrs.*) with a tmp file that's accessible from the interactive shell session.

Member Data Documentation

◆ ignoreVars

StringSet Common::ignoreVars
Initial value:
{
"BASHOPTS",
"HOME",
"NIX_BUILD_TOP",
"NIX_ENFORCE_PURITY",
"NIX_LOG_FD",
"NIX_REMOTE",
"PPID",
"SHELLOPTS",
"SSL_CERT_FILE",
"TEMP",
"TEMPDIR",
"TERM",
"TMP",
"TMPDIR",
"TZ",
"UID",
}

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