2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
26 lines
656 B
Nix
26 lines
656 B
Nix
{ 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 ];
|
|
cmakeFlags = [
|
|
"-DCMAKE_MESSAGE_LOG_LEVEL=STATUS"
|
|
];
|
|
dontUseNinjaBuild = true;
|
|
buildFlags = [ "docs" ];
|
|
dontUseNinjaInstall = true;
|
|
installFlags = [ "install_docs" ];
|
|
outputs = [ "out" ];
|
|
}
|