From 8def3d69c724b4313fcfd01534054c043a637047 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 19 Jun 2015 17:59:43 +0200 Subject: [PATCH] rustc: Install docs in a separator output This reduces rustc's size from 359 MiB to 186 MiB. Maybe we should disable doc generation altogether, since it's very slow and people who need docs will JFGI anyway. But for now I've left it. --- pkgs/development/compilers/rustc/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/rustc/generic.nix b/pkgs/development/compilers/rustc/generic.nix index 9c95dbb1003a..d1091643f779 100644 --- a/pkgs/development/compilers/rustc/generic.nix +++ b/pkgs/development/compilers/rustc/generic.nix @@ -136,6 +136,8 @@ stdenv.mkDerivation { enableParallelBuilding = true; + outputs = [ "out" "doc" ]; + preCheck = "export TZDIR=${tzdata}/share/zoneinfo"; doCheck = true;