3
0
Fork 0
forked from mirrors/nixpkgs

stdenv: linux, darwin: don't build documentation for the the intermediate stages

For the cc of the intermediate stages, to be precise. Doing the same for
bintools requires lots of refactoring.

This is mainly for the future extensibility as now you can change
documentation generation with impunity without rebuilding the
whole of stdenv.
This commit is contained in:
Jan Malakhovski 2018-02-01 00:00:00 +00:00
parent f1074211ce
commit 522437362a
2 changed files with 2 additions and 0 deletions

View file

@ -86,6 +86,7 @@ in rec {
extraPackages = lib.optional (libcxx != null) libcxx;
nativeTools = false;
propagateDoc = false;
nativeLibc = false;
inherit buildPackages coreutils gnugrep bintools;
libc = last.pkgs.darwin.Libsystem;

View file

@ -89,6 +89,7 @@ let
then null
else lib.makeOverridable (import ../../build-support/cc-wrapper) {
nativeTools = false;
propagateDoc = false;
nativeLibc = false;
buildPackages = lib.optionalAttrs (prevStage ? stdenv) {
inherit (prevStage) stdenv;