eigen_5: add withDoc option, fix #526648 (#526787)

This commit is contained in:
Peder Bergebakken Sundt
2026-06-03 13:06:07 +00:00
committed by GitHub
+15 -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,25 @@ 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 ''
# Fontconfig error: No writable cache directories
export XDG_CACHE_HOME="$(mktemp -d)"
cmake --build . -t install-doc
'';