Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
15 lines
703 B
Diff
15 lines
703 B
Diff
--- a/src/macdeployqt/shared/shared.cpp
|
|
+++ b/src/macdeployqt/shared/shared.cpp
|
|
@@ -1241,6 +1241,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
|
|
if (!QFile(qmlImportScannerPath).exists())
|
|
qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner";
|
|
|
|
+#ifdef NIXPKGS_QMLIMPORTSCANNER
|
|
+ // Fallback: Nixpkgs hardcoded path
|
|
+ if (!QFile(qmlImportScannerPath).exists())
|
|
+ qmlImportScannerPath = NIXPKGS_QMLIMPORTSCANNER;
|
|
+#endif
|
|
+
|
|
// Verify that we found a qmlimportscanner binary
|
|
if (!QFile(qmlImportScannerPath).exists()) {
|
|
LogError() << "qmlimportscanner not found at" << qmlImportScannerPath;
|