2020-04-24 23:36:52 +00:00
|
|
|
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
qtModule {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "qttools";
|
2020-04-24 23:36:52 +00:00
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
|
|
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-08-20 17:08:02 +00:00
|
|
|
sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
|
|
|
|
-e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
devTools = [
|
|
|
|
"bin/qcollectiongenerator"
|
|
|
|
"bin/linguist"
|
|
|
|
"bin/assistant"
|
|
|
|
"bin/qdoc"
|
|
|
|
"bin/lconvert"
|
|
|
|
"bin/designer"
|
2020-08-20 17:08:02 +00:00
|
|
|
"bin/qtattributionsscanner"
|
2020-04-24 23:36:52 +00:00
|
|
|
"bin/lrelease"
|
2020-08-20 17:08:02 +00:00
|
|
|
"bin/lrelease-pro"
|
2020-04-24 23:36:52 +00:00
|
|
|
"bin/pixeltool"
|
|
|
|
"bin/lupdate"
|
2020-08-20 17:08:02 +00:00
|
|
|
"bin/lupdate-pro"
|
2020-04-24 23:36:52 +00:00
|
|
|
"bin/qtdiag"
|
|
|
|
"bin/qhelpgenerator"
|
|
|
|
"bin/qtplugininfo"
|
|
|
|
"bin/qthelpconverter"
|
2020-08-20 17:08:02 +00:00
|
|
|
"bin/lprodump"
|
|
|
|
"bin/qdistancefieldgenerator"
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
"bin/macdeployqt"
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE =
|
|
|
|
lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
|
|
|
|
|
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
|
|
}
|