Skip to content

Commit 7ae0cd7

Browse files
hamishmackangerman
authored andcommitted
Add a comment
1 parent b1b6cca commit 7ae0cd7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

compiler/ghc/default.nix

+9
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ let self =
5353
enableNUMA ? true
5454

5555
, enableDocs ? false # Choose between --docs=none and --docs=no-sphinx
56+
# Turning this off saves around 600MB for each GHC build
57+
# If you need GHC docs use an overlay like this:
58+
# final: prev: {
59+
# haskell-nix = prev.haskell-nix // {
60+
# compiler = final.lib.mapAttrs (_: x: x.override ({
61+
# enableDocs = true;
62+
# })) prev.haskell-nix.compiler;
63+
# };
64+
# }
5665

5766
, # What flavour to build. An empty string indicates no
5867
# specific flavour and falls back to ghc default values.

0 commit comments

Comments
 (0)