python312Packages.mandown: 1.10.0 -> 1.10.1 (#370595)
[NixPkgs.git] / pkgs / development / libraries / qt-5 / modules / qttools.nix
blob52be15d64e8a1baf2da2d745b72edb3b42995728
2   qtModule,
3   stdenv,
4   lib,
5   qtbase,
6   qtdeclarative,
7   substituteAll,
8   llvmPackages,
9 }:
11 qtModule {
12   pname = "qttools";
14   outputs = [
15     "out"
16     "dev"
17     "bin"
18   ];
20   buildInputs = with llvmPackages; [
21     libclang
22     libllvm
23   ];
25   propagatedBuildInputs = [
26     qtbase
27     qtdeclarative
28   ];
30   patches = [
31     # fixQtBuiltinPaths overwrites builtin paths we should keep
32     (substituteAll {
33       src = ./qttools-QT_HOST_DATA-refs.patch;
34       qtbaseDev = lib.getDev qtbase;
35     })
37     (substituteAll {
38       src = ./qttools-libclang-main-header.patch;
39       libclangDev = lib.getDev llvmPackages.libclang;
40     })
41   ];
43   devTools = [
44     "bin/qcollectiongenerator"
45     "bin/linguist"
46     "bin/assistant"
47     "bin/qdoc"
48     "bin/lconvert"
49     "bin/designer"
50     "bin/qtattributionsscanner"
51     "bin/lrelease"
52     "bin/lrelease-pro"
53     "bin/pixeltool"
54     "bin/lupdate"
55     "bin/lupdate-pro"
56     "bin/qtdiag"
57     "bin/qhelpgenerator"
58     "bin/qtplugininfo"
59     "bin/qthelpconverter"
60     "bin/lprodump"
61     "bin/qdistancefieldgenerator"
62   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "bin/macdeployqt" ];
64   env.NIX_CFLAGS_COMPILE = lib.optionalString (
65     stdenv.hostPlatform.isDarwin && qtdeclarative != null
66   ) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
68   setupHook = ../hooks/qttools-setup-hook.sh;