Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
523 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
qtModule,
qtdeclarative,
qtbase,
qttools,
}:
qtModule {
pname = "qtdoc";
# 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; }) ];
propagatedBuildInputs = [ qtdeclarative ];
ninjaFlags = [ "docs" ];
installTargets = [ "install_docs" ];
}