openssl_1_1: Add "doc" output to contain HTML documentation

This prevents cluttering up openssl_1_1.out with many megabytes of
documentation.

Fixes #51659
This commit is contained in:
Andrew Dunham 2018-12-09 01:42:05 -08:00 committed by Jörg Thalheim
parent 91a7848fe2
commit 14087abe6a
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -7,7 +7,7 @@
with stdenv.lib;
let
common = args@{ version, sha256, patches ? [] }: stdenv.mkDerivation rec {
common = args@{ version, sha256, patches ? [], withDocs ? false }: stdenv.mkDerivation rec {
name = "openssl-${version}";
src = fetchurl {
@ -33,7 +33,7 @@ let
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
'';
outputs = [ "bin" "dev" "out" "man" ];
outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc";
setOutputFlags = false;
separateDebugInfo = stdenv.hostPlatform.isLinux;
@ -135,6 +135,7 @@ in {
version = "1.1.1a";
sha256 = "0hcz7znzznbibpy3iyyhvlqrq44y88plxwdj32wjzgbwic7i687w";
patches = [ ./1.1/nix-ssl-cert-file.patch ];
withDocs = true;
};
}