aboutsummaryrefslogtreecommitdiff
path: root/pkgs/top-level/stage.nix
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 /pkgs/top-level/stage.nix
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 'pkgs/top-level/stage.nix')
-rw-r--r--pkgs/top-level/stage.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix
index 58b0300cc79c..8fc460ca5227 100644
--- a/pkgs/top-level/stage.nix
+++ b/pkgs/top-level/stage.nix
@@ -200,6 +200,9 @@ let
then self
else import ./stage.nix (args // { overlays = args.overlays ++ extraOverlays; });
+ # NOTE: each call to extend causes a full nixpkgs rebuild, adding ~130MB
+ # of allocations. DO NOT USE THIS IN NIXPKGS.
+ #
# Extend the package set with a single overlay. This preserves
# preexisting overlays. Prefer to initialize with the right overlays
# in one go when calling Nixpkgs, for performance and simplicity.