2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, qtdeclarative
|
2023-07-15 17:15:38 +00:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qtdoc";
|
2023-07-15 17:15:38 +00:00
|
|
|
# avoid fix-qt-builtin-paths hook substitute QT_INSTALL_DOCS to qtdoc's path
|
|
|
|
postPatch = ''
|
|
|
|
for file in $(grep -rl '$QT_INSTALL_DOCS'); do
|
|
|
|
substituteInPlace $file \
|
|
|
|
--replace '$QT_INSTALL_DOCS' "${qtbase}/share/doc"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [ (qttools.override { withClang = true; }) ];
|
2022-06-16 17:23:12 +00:00
|
|
|
qtInputs = [ qtdeclarative ];
|
2023-07-15 17:15:38 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_MESSAGE_LOG_LEVEL=STATUS"
|
|
|
|
];
|
|
|
|
dontUseNinjaBuild = true;
|
|
|
|
buildFlags = [ "docs" ];
|
|
|
|
dontUseNinjaInstall = true;
|
|
|
|
installFlags = [ "install_docs" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
outputs = [ "out" ];
|
|
|
|
}
|