Environment variables: Difference between revisions

YoshiRulz (talk | contribs)
m Add clarification to section headers
YoshiRulz (talk | contribs)
Add section re: builtins.getEnv
Line 54: Line 54:
==== Solution or workaround ====
==== Solution or workaround ====
Unknown.
Unknown.
== Using variables from a Nix expression ==
The <code>builtins.getEnv</code> function allows for reading the environment of the Nix command which triggered the expression to be evaluated, typically <code>nix-build</code>.


== Variables exposed in nix-build sandbox ==
== Variables exposed in nix-build sandbox ==