eigen_5: add withDoc option, fix #526648

This commit is contained in:
Guilhem Saurel
2026-06-01 18:56:38 +02:00
parent 825893e51c
commit d613d39bd9
+12 -4
View File
@@ -10,6 +10,8 @@
doxygen,
cmake,
graphviz,
withDoc ? true, # upstream disable for cross, even if it seems to build fine
}:
stdenv.mkDerivation (finalAttrs: {
@@ -34,16 +36,22 @@ stdenv.mkDerivation (finalAttrs: {
outputs = [
"out"
"doc"
];
]
++ lib.optional withDoc "doc";
nativeBuildInputs = [
doxygen
cmake
]
++ lib.optionals withDoc [
doxygen
graphviz
];
postInstall = ''
cmakeFlags = [
(lib.cmakeBool "EIGEN_BUILD_DOC" withDoc)
];
postInstall = lib.optionalString withDoc ''
cmake --build . -t install-doc
'';