File tree Expand file tree Collapse file tree
pkgs/development/libraries/qt-5/5.14 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
2+ index 005db4248..685c5b1b2 100644
3+ --- a/src/qml/qml/qqmlimport.cpp
4+ +++ b/src/qml/qml/qqmlimport.cpp
5+ @@ -1760,6 +1760,15 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
6+ QString installImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
7+ addImportPath(installImportsPath);
8+
9+ + // Add import paths derived from PATH
10+ + const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
11+ + const QString qmldir = QStringLiteral("../" NIXPKGS_QML2_IMPORT_PREFIX);
12+ + for (const QString &path: paths) {
13+ + if (!path.isEmpty()) {
14+ + addImportPath(QDir::cleanPath(path + QDir::separator() + qmldir));
15+ + }
16+ + }
17+ +
18+ // env import paths
19+ if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) {
20+ const QString envImportPath = qEnvironmentVariable("QML2_IMPORT_PATH");
121diff --git a/tools/qmlcachegen/qmlcache.prf b/tools/qmlcachegen/qmlcache.prf
222index 537eaf62e..e21de58f6 100644
323--- a/tools/qmlcachegen/qmlcache.prf
You can’t perform that action at this time.
0 commit comments