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:
parent
91a7848fe2
commit
14087abe6a
@ -7,7 +7,7 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
common = args@{ version, sha256, patches ? [] }: stdenv.mkDerivation rec {
|
common = args@{ version, sha256, patches ? [], withDocs ? false }: stdenv.mkDerivation rec {
|
||||||
name = "openssl-${version}";
|
name = "openssl-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -33,7 +33,7 @@ let
|
|||||||
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" ];
|
outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc";
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
separateDebugInfo = stdenv.hostPlatform.isLinux;
|
separateDebugInfo = stdenv.hostPlatform.isLinux;
|
||||||
|
|
||||||
@ -135,6 +135,7 @@ in {
|
|||||||
version = "1.1.1a";
|
version = "1.1.1a";
|
||||||
sha256 = "0hcz7znzznbibpy3iyyhvlqrq44y88plxwdj32wjzgbwic7i687w";
|
sha256 = "0hcz7znzznbibpy3iyyhvlqrq44y88plxwdj32wjzgbwic7i687w";
|
||||||
patches = [ ./1.1/nix-ssl-cert-file.patch ];
|
patches = [ ./1.1/nix-ssl-cert-file.patch ];
|
||||||
|
withDocs = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user