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;
13 // Verify that we found a qmlimportscanner binary
14 if (!QFile(qmlImportScannerPath).exists()) {
15 LogError() << "qmlimportscanner not found at" << qmlImportScannerPath;