d4c607aa71
This includes contributions by @ttuegel and @DizFer. Thanks!
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
|
|
|
|
with lib;
|
|
|
|
qtModule {
|
|
name = "qttools";
|
|
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}|'
|
|
sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
|
|
-e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|'
|
|
'';
|
|
|
|
devTools = [
|
|
"bin/qcollectiongenerator"
|
|
"bin/linguist"
|
|
"bin/assistant"
|
|
"bin/qdoc"
|
|
"bin/lconvert"
|
|
"bin/designer"
|
|
"bin/qtattributionsscanner"
|
|
"bin/lrelease"
|
|
"bin/lrelease-pro"
|
|
"bin/pixeltool"
|
|
"bin/lupdate"
|
|
"bin/lupdate-pro"
|
|
"bin/qtdiag"
|
|
"bin/qhelpgenerator"
|
|
"bin/qtplugininfo"
|
|
"bin/qthelpconverter"
|
|
"bin/lprodump"
|
|
"bin/qdistancefieldgenerator"
|
|
] ++ optionals stdenv.isDarwin [
|
|
"bin/macdeployqt"
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE =
|
|
lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
|
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
}
|