clarification on extra attributes

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Valentin Gagarin 2023-09-22 09:53:29 +02:00
parent 026c24e378
commit 17884f54d1

View file

@ -114,7 +114,11 @@ It outputs an attribute set, and produces a [store derivation](@docroot@/glossar
- Every other attribute is passed as an environment variable to the builder. - Every other attribute is passed as an environment variable to the builder.
Attribute values are translated to environment variables as follows: Attribute values are translated to environment variables as follows:
- Strings and numbers are just passed verbatim. - Strings are passed unchanged.
- Integral numbers are converted to decimal notation.
- Floating point numbers are converted to simple decimal or scientific notation with a preset precision.
- A *path* (e.g., `../foo/sources.tar`) causes the referenced file - A *path* (e.g., `../foo/sources.tar`) causes the referenced file
to be copied to the store; its location in the store is put in to be copied to the store; its location in the store is put in