mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
This commit is contained in:
parent
f90d85107e
commit
1db187ff69
1 changed files with 14 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
chapter xmlns="http://docbook.org/ns/docbook"
|
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
xml:id='chap-writing-nix-expressions'>
|
xml:id='chap-writing-nix-expressions'>
|
||||||
|
|
||||||
|
@ -526,16 +526,15 @@ genericBuild <co xml:id='ex-hello-builder2-co-3' /></programlisting>
|
||||||
<filename>bin</filename> subdirectory, it's added to
|
<filename>bin</filename> subdirectory, it's added to
|
||||||
<envar>PATH</envar>; if it has a <filename>include</filename>
|
<envar>PATH</envar>; if it has a <filename>include</filename>
|
||||||
subdirectory, it's added to GCC's header search path; and so
|
subdirectory, it's added to GCC's header search path; and so
|
||||||
on.
|
on.<footnote><para>How does it work? <filename>setup</filename>
|
||||||
<footnote><para>How does it work? setup tries sourcing
|
tries to source the file
|
||||||
$out/nix-support/setup-hook of all dependencies
|
<filename><replaceable>pkg</replaceable>/nix-support/setup-hook</filename>
|
||||||
thereby defining environment variables.
|
of all dependencies. These “setup hooks” can then set up whatever
|
||||||
If you have A depending on B depending on C
|
environment variables they want; for instance, the setup hook for
|
||||||
you can force the setup-hooks of C beeing sourced when evaluating
|
Perl sets the <envar>PERL5LIB</envar> environment variable to
|
||||||
expression A by using
|
contain the <filename>lib/site_perl</filename> directories of all
|
||||||
<programlisting>propagatedBuildInputs=[ C ];</programlisting>
|
inputs.</para></footnote>
|
||||||
instead of buildInputs when defining derivation B.
|
</para>
|
||||||
</para></footnote></para>
|
|
||||||
|
|
||||||
</callout>
|
</callout>
|
||||||
|
|
||||||
|
@ -544,7 +543,7 @@ genericBuild <co xml:id='ex-hello-builder2-co-3' /></programlisting>
|
||||||
<para>The function <function>genericBuild</function> is defined in
|
<para>The function <function>genericBuild</function> is defined in
|
||||||
the file <literal>$stdenv/setup</literal>.</para>
|
the file <literal>$stdenv/setup</literal>.</para>
|
||||||
|
|
||||||
</callout> looks for a file nix-support/setup-hook within the derivation path.
|
</callout>
|
||||||
|
|
||||||
<callout arearefs='ex-hello-builder2-co-3'>
|
<callout arearefs='ex-hello-builder2-co-3'>
|
||||||
|
|
||||||
|
@ -1226,9 +1225,9 @@ set, the attributes of which specify the inputs of the build.</para>
|
||||||
They are simply concatenated, separated by
|
They are simply concatenated, separated by
|
||||||
spaces.</para></listitem>
|
spaces.</para></listitem>
|
||||||
|
|
||||||
<listitem><para><emphasis>true</emphasis> is passed as
|
<listitem><para><literal>true</literal> is passed as the string
|
||||||
<emphasis>1</emphasis>, <emphasis>false</emphasis>
|
<literal>1</literal>, <literal>false</literal> and
|
||||||
and <emphasis>null</emphasis> are passed as empty string.
|
<literal>null</literal> are passed as an empty string.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue