mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
stdenv: export system pname name version for substituteAll
so we don't have to add these to the env attrset
This commit is contained in:
parent
18d00c5814
commit
bb914d8676
@ -878,6 +878,10 @@ substituteInPlace() {
|
||||
}
|
||||
|
||||
_allFlags() {
|
||||
# export some local variables for the awk below
|
||||
# so some substitutions such as name don't have to be in the env attrset
|
||||
# when __structuredAttrs is enabled
|
||||
export system pname name version
|
||||
for varName in $(awk 'BEGIN { for (v in ENVIRON) if (v ~ /^[a-z][a-zA-Z0-9_]*$/) print v }'); do
|
||||
if (( "${NIX_DEBUG:-0}" >= 1 )); then
|
||||
printf "@%s@ -> %q\n" "${varName}" "${!varName}"
|
||||
|
Loading…
Reference in New Issue
Block a user