summary refs log tree commit diff
diff options
context:
space:
mode:
authorrewine <luhongxu@deepin.org>2023-03-30 15:17:42 +0800
committerrewine <lhongxu@outlook.com>2023-05-24 09:52:24 +0800
commita0402498c24a25fb07491308cfb7022dad51141b (patch)
treeb22adc9c59744409dc3920e6bc30d91d7ca883c4
parent9bc545612e3673fbd217ae19056b24d39b19b2e5 (diff)
downloadnixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar.gz
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar.bz2
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar.lz
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar.xz
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.tar.zst
nixpkgs-a0402498c24a25fb07491308cfb7022dad51141b.zip
qt6.qtdoc: fix build
-rw-r--r--pkgs/development/libraries/qt-6/modules/qtdoc.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-6/modules/qtdoc.nix b/pkgs/development/libraries/qt-6/modules/qtdoc.nix
index cde9af30ab9..004a18f53c7 100644
--- a/pkgs/development/libraries/qt-6/modules/qtdoc.nix
+++ b/pkgs/development/libraries/qt-6/modules/qtdoc.nix
@@ -1,9 +1,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 ];
   qtInputs = [ qtdeclarative ];
+  cmakeFlags = [
+    "-DCMAKE_MESSAGE_LOG_LEVEL=STATUS"
+  ];
+  dontUseNinjaBuild = true;
+  buildFlags = [ "docs" ];
+  dontUseNinjaInstall = true;
+  installFlags = [ "install_docs" ];
   outputs = [ "out" ];
 }