stdenv: fix documentation for stripAllFlags and stripDebugFlags (#352127)
[NixPkgs.git] / pkgs / development / libraries / qt-5 / 5.15 / qttools.patch
blob8ae12198ca2586d11bbcd8f63d5f05d288631e5e
1 --- a/src/macdeployqt/shared/shared.cpp
2 +++ b/src/macdeployqt/shared/shared.cpp
3 @@ -1241,6 +1241,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
4 if (!QFile(qmlImportScannerPath).exists())
5 qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner";
7 +#ifdef NIXPKGS_QMLIMPORTSCANNER
8 + // Fallback: Nixpkgs hardcoded path
9 + if (!QFile(qmlImportScannerPath).exists())
10 + qmlImportScannerPath = NIXPKGS_QMLIMPORTSCANNER;
11 +#endif
13 // Verify that we found a qmlimportscanner binary
14 if (!QFile(qmlImportScannerPath).exists()) {
15 LogError() << "qmlimportscanner not found at" << qmlImportScannerPath;