about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-02-01 00:00:00 +0000
committerJan Malakhovski <oxij@oxij.org>2018-02-26 22:45:10 +0000
commit522437362aa4e4cf9e9e50b50e560c87cd3dfc2d (patch)
tree771077c890aaf6fef684b1b9813b6843b880e5f9
parentf1074211ce4c2f59f3c6e24dc5d54ee69478a502 (diff)
downloadnixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar.gz
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar.bz2
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar.lz
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar.xz
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.tar.zst
nixlib-522437362aa4e4cf9e9e50b50e560c87cd3dfc2d.zip
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.
-rw-r--r--pkgs/stdenv/darwin/default.nix1
-rw-r--r--pkgs/stdenv/linux/default.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index 28b2f203dae5..73dadc38420e 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -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;
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 249f788c17ae..cd11dee9c82a 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -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;