2019-06-23 03:20:35 +01:00
|
|
|
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
|
2017-10-24 12:39:54 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
name = "qttools";
|
2020-02-08 19:23:33 +00:00
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2017-10-24 12:39:54 +01:00
|
|
|
outputs = [ "out" "dev" "bin" ];
|
|
|
|
|
|
|
|
# fixQtBuiltinPaths overwrites a builtin path we should keep
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "src/linguist/linguist.pro" \
|
|
|
|
-e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
|
2020-04-04 03:59:23 +01:00
|
|
|
sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
|
|
|
|
-e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
|
2017-10-24 12:39:54 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
devTools = [
|
|
|
|
"bin/qcollectiongenerator"
|
|
|
|
"bin/linguist"
|
|
|
|
"bin/assistant"
|
|
|
|
"bin/qdoc"
|
|
|
|
"bin/lconvert"
|
|
|
|
"bin/designer"
|
2020-04-04 03:59:23 +01:00
|
|
|
"bin/qtattributionsscanner"
|
2017-10-24 12:39:54 +01:00
|
|
|
"bin/lrelease"
|
2020-04-04 03:59:23 +01:00
|
|
|
"bin/lrelease-pro"
|
2017-10-24 12:39:54 +01:00
|
|
|
"bin/pixeltool"
|
|
|
|
"bin/lupdate"
|
2020-04-04 03:59:23 +01:00
|
|
|
"bin/lupdate-pro"
|
2017-10-24 12:39:54 +01:00
|
|
|
"bin/qtdiag"
|
|
|
|
"bin/qhelpgenerator"
|
|
|
|
"bin/qtplugininfo"
|
|
|
|
"bin/qthelpconverter"
|
2020-04-04 03:59:23 +01:00
|
|
|
"bin/lprodump"
|
|
|
|
"bin/qdistancefieldgenerator"
|
2017-12-20 06:06:35 +00:00
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
"bin/macdeployqt"
|
2017-10-24 12:39:54 +01:00
|
|
|
];
|
|
|
|
|
2019-06-23 03:20:35 +01:00
|
|
|
NIX_CFLAGS_COMPILE =
|
|
|
|
lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
|
|
|
|
|
2017-10-24 12:39:54 +01:00
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
|
|
}
|