* Use "source" instead of ".".
This commit is contained in:
parent
ebfe57166d
commit
ed4de220d2
1 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,7 @@ perl = perl;</programlisting>
|
||||||
<example id='ex-hello-builder'><title>Build script for GNU Hello
|
<example id='ex-hello-builder'><title>Build script for GNU Hello
|
||||||
(<filename>builder.sh</filename>)</title>
|
(<filename>builder.sh</filename>)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
. $stdenv/setup <co id='ex-hello-builder-co-1' />
|
source $stdenv/setup <co id='ex-hello-builder-co-1' />
|
||||||
|
|
||||||
PATH=$perl/bin:$PATH <co id='ex-hello-builder-co-2' />
|
PATH=$perl/bin:$PATH <co id='ex-hello-builder-co-2' />
|
||||||
|
|
||||||
|
@ -524,7 +524,7 @@ build functions</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
buildInputs="$perl" <co id='ex-hello-builder2-co-1' />
|
buildInputs="$perl" <co id='ex-hello-builder2-co-1' />
|
||||||
|
|
||||||
. $stdenv/setup <co id='ex-hello-builder2-co-2' />
|
source $stdenv/setup <co id='ex-hello-builder2-co-2' />
|
||||||
|
|
||||||
genericBuild <co id='ex-hello-builder2-co-3' /></programlisting>
|
genericBuild <co id='ex-hello-builder2-co-3' /></programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
@ -575,7 +575,7 @@ The <varname>perl</varname> attribute can then be removed, and the
|
||||||
builder becomes even shorter:
|
builder becomes even shorter:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
. $stdenv/setup
|
source $stdenv/setup
|
||||||
genericBuild</programlisting>
|
genericBuild</programlisting>
|
||||||
|
|
||||||
In fact, <varname>mkDerivation</varname> provides a default builder
|
In fact, <varname>mkDerivation</varname> provides a default builder
|
||||||
|
@ -1356,7 +1356,7 @@ of the following components:
|
||||||
called <envar>stdenv</envar> to the derivation, and then doing
|
called <envar>stdenv</envar> to the derivation, and then doing
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
. $stdenv/setup</programlisting>
|
source $stdenv/setup</programlisting>
|
||||||
|
|
||||||
at the top of the builder.</para>
|
at the top of the builder.</para>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue