nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 qtModule,
3 qtdeclarative,
4 qtbase,
5 qttools,
6}:
7
8qtModule {
9 pname = "qtdoc";
10 # avoid fix-qt-builtin-paths hook substitute QT_INSTALL_DOCS to qtdoc's path
11 postPatch = ''
12 for file in $(grep -rl '$QT_INSTALL_DOCS'); do
13 substituteInPlace $file \
14 --replace '$QT_INSTALL_DOCS' "${qtbase}/share/doc"
15 done
16 '';
17 nativeBuildInputs = [ (qttools.override { withClang = true; }) ];
18 propagatedBuildInputs = [ qtdeclarative ];
19
20 ninjaFlags = [ "docs" ];
21 installTargets = [ "install_docs" ];
22}