linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / qt-5 / modules / qttools.nix
blobfae90972978f059d159588cec3a1269abbc239a8
1 { qtModule, stdenv, lib, qtbase, qtdeclarative }:
3 with lib;
5 qtModule {
6   name = "qttools";
7   qtInputs = [ qtbase qtdeclarative ];
8   outputs = [ "out" "dev" "bin" ];
10   # fixQtBuiltinPaths overwrites a builtin path we should keep
11   postPatch = ''
12     sed -i "src/linguist/linguist.pro" \
13         -e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
14     sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
15         -e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
16   '';
18   devTools = [
19     "bin/qcollectiongenerator"
20     "bin/linguist"
21     "bin/assistant"
22     "bin/qdoc"
23     "bin/lconvert"
24     "bin/designer"
25     "bin/qtattributionsscanner"
26     "bin/lrelease"
27     "bin/lrelease-pro"
28     "bin/pixeltool"
29     "bin/lupdate"
30     "bin/lupdate-pro"
31     "bin/qtdiag"
32     "bin/qhelpgenerator"
33     "bin/qtplugininfo"
34     "bin/qthelpconverter"
35     "bin/lprodump"
36     "bin/qdistancefieldgenerator"
37   ] ++ optionals stdenv.isDarwin [
38     "bin/macdeployqt"
39   ];
41   NIX_CFLAGS_COMPILE =
42     lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
44   setupHook = ../hooks/qttools-setup-hook.sh;