2017-12-20 06:06:35 +00:00
|
|
|
{ qtModule, stdenv, lib, qtbase }:
|
2017-10-24 12:39:54 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
name = "qttools";
|
|
|
|
qtInputs = [ qtbase ];
|
|
|
|
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}|'
|
|
|
|
'';
|
|
|
|
|
|
|
|
devTools = [
|
|
|
|
"bin/qcollectiongenerator"
|
|
|
|
"bin/linguist"
|
|
|
|
"bin/assistant"
|
|
|
|
"bin/qdoc"
|
|
|
|
"bin/lconvert"
|
|
|
|
"bin/designer"
|
|
|
|
"bin/qtattributesscanner"
|
|
|
|
"bin/lrelease"
|
|
|
|
"bin/pixeltool"
|
|
|
|
"bin/lupdate"
|
|
|
|
"bin/qtdiag"
|
|
|
|
"bin/qhelpgenerator"
|
|
|
|
"bin/qtplugininfo"
|
|
|
|
"bin/qthelpconverter"
|
2017-12-20 06:06:35 +00:00
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
"bin/macdeployqt"
|
2017-10-24 12:39:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
|
|
}
|