summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2020-11-30 14:20:28 +0100
committerzimbatm <zimbatm@zimbatm.com>2020-11-30 14:24:40 +0100
commitbbc9af1f0a30fe8106d6fb90f15ebb01845b3008 (patch)
tree7918ef3e7e2c99f923b401c7145644fcdfb33bf4 /doc
parentc5d33689da8a287ebe50a6d8e07a553e8aa4b316 (diff)
tree-wide: do not use pkgs.extend in nixpkgs
Each invocation of pkgs.extends adds 130MB of allocation to the hydra evaluator. We are already struggling with the amount of memory nixpkgs requires. `pkgs.extend` is a useful escape-hatch, but should be not be used inside of nixpkgs directly.
Diffstat (limited to 'doc')
-rw-r--r--doc/using/overlays.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/using/overlays.xml b/doc/using/overlays.xml
index 4937e9508857..caacb0a04622 100644
--- a/doc/using/overlays.xml
+++ b/doc/using/overlays.xml
@@ -28,6 +28,7 @@
</para>
<para>
+ NOTE: DO NOT USE THIS in nixpkgs.
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>
</section>