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.
This commit is contained in:
zimbatm 2020-11-30 14:20:28 +01:00
parent c5d33689da
commit bbc9af1f0a
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
6 changed files with 17 additions and 39 deletions

View file

@ -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>