about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/qt-6/modules/qtdoc.nix
blob: 555108caa01a5396e823abed75e4961fd7ff6f4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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" ];
}