aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch')
-rw-r--r--nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch b/nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch
new file mode 100644
index 00000000000..8ae12198ca2
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/qt-5/5.15/qttools.patch
@@ -0,0 +1,15 @@
+--- 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;