nixpkgs docs: Point to pkgs.extend, pkgs.appendOverlays and improve override section

This commit is contained in:
Robert Hensing
2018-10-18 10:48:43 +02:00
parent ba8b54fa4a
commit 9b7654f6ff
2 changed files with 20 additions and 3 deletions
+7 -1
View File
@@ -30,10 +30,16 @@
itself is given, then that is used.
</para>
<para>
This can be passed explicitly when importing nipxkgs, for example
This can be passed explicitly when importing nixpkgs, for example
<literal>import &lt;nixpkgs> { overlays = [ overlay1 overlay2 ];
}</literal>.
</para>
<para>
Further overlays can be added by calling the
<literal>pkgs.extend</literal> or <literal>pkgs.appendOverlays</literal>,
although it is often preferable to avoid these functions, because they
recompute the Nixpkgs fixpoint, which is somewhat expensive to do.
</para>
</listitem>
<listitem>
<para>