1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Explained the declare command, as it may be unfamiliar.

This commit is contained in:
Amy de Buitléir 2018-12-10 01:03:20 +00:00
parent f0cf557c58
commit c3ef7065b9

View file

@ -65,6 +65,9 @@
<programlisting><xi:include href="./07/builder.sh.txt" parse="text" /></programlisting>
The command <literal>declare -xp</literal>
lists exported variables.
(<literal>declare</literal> is a builtin bash function.)
As we covered in the previous pill, Nix computes the output path of the
derivation. The resulting <literal>.drv</literal> file contains a list of
environment variables passed to the builder. One of these is