Merge pull request #51781 from Mic92/openssl-11-docs

openssl_1_1: Add "doc" output to contain HTML documentation
This commit is contained in:
Jörg Thalheim 2018-12-10 00:43:20 +00:00 committed by GitHub
commit 48e49d01b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
};
}