7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ qtModule, stdenv, lib, qtbase, qtdeclarative }:
|
|
|
|
qtModule {
|
|
pname = "qttools";
|
|
propagatedBuildInputs = [ 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.*\]|${lib.getDev qtbase}|'
|
|
sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
|
|
-e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.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"
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"bin/macdeployqt"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.isDarwin && qtdeclarative != null) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
|
|
|
|
setupHook = ../hooks/qttools-setup-hook.sh;
|
|
}
|