forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / qt-6 / modules / qtdoc.nix
blob555108caa01a5396e823abed75e4961fd7ff6f4a
1 { qtModule
2 , qtdeclarative
3 , qtbase
4 , qttools
5 }:
7 qtModule {
8   pname = "qtdoc";
9   # avoid fix-qt-builtin-paths hook substitute QT_INSTALL_DOCS to qtdoc's path
10   postPatch = ''
11     for file in $(grep -rl '$QT_INSTALL_DOCS'); do
12       substituteInPlace $file \
13           --replace '$QT_INSTALL_DOCS' "${qtbase}/share/doc"
14     done
15   '';
16   nativeBuildInputs = [ (qttools.override { withClang = true; }) ];
17   propagatedBuildInputs = [ qtdeclarative ];
18   cmakeFlags = [
19     "-DCMAKE_MESSAGE_LOG_LEVEL=STATUS"
20   ];
21   dontUseNinjaBuild = true;
22   buildFlags = [ "docs" ];
23   dontUseNinjaInstall = true;
24   installFlags = [ "install_docs" ];
25   outputs = [ "out" ];