libjxl: Gate building docs behind setting

This commit is contained in:
Daniel Olsen 2022-06-05 06:51:44 +02:00
parent eaf5f4483a
commit fefca2f622

View file

@ -1,10 +1,7 @@
{ stdenv, lib, fetchFromGitHub
, fetchpatch
, asciidoc
, brotli
, cmake
, graphviz
, doxygen
, giflib
, gperftools
, gtest
@ -14,8 +11,12 @@
, libwebp
, openexr
, pkg-config
, python3
, zlib
, buildDocs ? true
, asciidoc
, graphviz
, doxygen
, python3
}:
stdenv.mkDerivation rec {
@ -50,13 +51,14 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [
asciidoc # for docs
cmake
graphviz # for docs via doxygen component `dot`
doxygen # for docs
gtest
pkg-config
python3 # for docs
] ++ lib.optionals buildDocs [
asciidoc
graphviz
doxygen
python3
];
# Functionality not currently provided by this package