We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extraBuildInputs
2 parents d5f30d9 + 4928668 commit 2e7f4d3Copy full SHA for 2e7f4d3
pkgs/top-level/stage.nix
@@ -51,7 +51,15 @@ in
51
52
, # `stdenv` without a C compiler. Passing in this helps avoid infinite
53
# recursions, and may eventually replace passing in the full stdenv.
54
- stdenvNoCC ? stdenv.override { cc = null; hasCC = false; }
+ stdenvNoCC ? (
55
+ stdenv.override {
56
+ cc = null;
57
+ hasCC = false;
58
+ }
59
+ # Darwin doesn’t need an SDK in `stdenvNoCC`. Dropping it shrinks the closure
60
+ # size down from ~1 GiB to ~83 MiB, which is a considerable reduction.
61
+ // lib.optionalAttrs stdenv.hostPlatform.isDarwin { extraBuildInputs = [ ]; }
62
+ )
63
64
, # This is used because stdenv replacement and the stdenvCross do benefit from
65
# the overridden configuration provided by the user, as opposed to the normal
0 commit comments