2020-04-24 23:36:52 +00:00
|
|
|
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
|
|
|
|
|
|
|
|
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" \
|
2021-08-22 07:53:02 +00:00
|
|
|
-e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.getDev qtbase}|'
|
2020-08-20 17:08:02 +00:00
|
|
|
sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
|
2021-08-22 07:53:02 +00:00
|
|
|
-e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.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"
|
2021-08-22 07:53:02 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2020-04-24 23:36:52 +00:00
|
|
|
"bin/macdeployqt"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && qtdeclarative != null) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
|
|
}
|