diff options
author | zimbatm <zimbatm@zimbatm.com> | 2020-11-30 14:20:28 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2020-11-30 14:24:40 +0100 |
commit | bbc9af1f0a30fe8106d6fb90f15ebb01845b3008 (patch) | |
tree | 7918ef3e7e2c99f923b401c7145644fcdfb33bf4 /pkgs/top-level/stage.nix | |
parent | c5d33689da8a287ebe50a6d8e07a553e8aa4b316 (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.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index 58b0300cc79ce..8fc460ca52278 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. |