Code change:
<ins> diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index 005db4248..685c5b1b2 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -1760,6 +1760,15 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e) QString installImportsPath =  QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath); addImportPath(installImportsPath); +    // Add import paths derived from PATH +    const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':'); +    const QString qmldir = QStringLiteral("../" NIXPKGS_QML2_IMPORT_PREFIX); +    for (const QString &path: paths) { +        if (!path.isEmpty()) { +            addImportPath(QDir::cleanPath(path + QDir::separator() + qmldir)); +        } +    } + // env import paths if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) { const QString envImportPath = qEnvironmentVariable("QML2_IMPORT_PATH"); </ins> diff --git a/tools/qmlcachegen/qmlcache.prf b/tools/qmlcachegen/qmlcache.prf index 537eaf62e..e21de58f6 100644 --- a/tools/qmlcachegen/qmlcache.prf

Related discussion:
text: Describe the bug A lot of kde widgets and functions broke after recent updates on the unstable channel (nixos-unstable). Opening the bluetooth widget shows this error message: Other broken widgets/functions includes bluetooth widget, printer widget and desktop (the desktop disappeared resulting in a black background) xsession log: To Reproduce Steps to reproduce the behavior: plasma plasma Expected behavior Plasma widgets should work normally Screenshots A broken widget: ! Additional context Add any other context about the problem here. Notify maintainers <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Metadata Please run and paste the result. system: host os: multi-user?: sandbox: version: channels(root): nixpkgs: Maintainer information:
cc I believe Qt was updated on unstable.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
That was just me asking if it was broken. In my case, The activities and taskbar went down. I am also having the black screen as background. The errors messages I've noticed are: Ocorreu um erro ao carregar o arquivo QML: file:///nix/store/aril5n1mllyyfdgjp23va4wh8d8mbl13-plasma-desktop- module "" is not installed system: host os: multi-user?: sandbox: version: channels(wjjunyor): channels(root): nixpkgs:
The likely culprit (though I'm not super familiar with QML) is that these lines: Are not present in the 5.14 version of the patch:
That sounds about correct to me. All the patches had to be redone for 5.14 so I guess that hunk got dropped
30 minutes into rebuild with it readded, will report if it works :)
Just a recommendation, not sure if it will be helpful to you specifically, but the time to rebuild should be relatively short, and it could be even shorter if you test via running the nixos test interactively
Yeah, that's exactly the command I've been waiting for... it seems to rebuild all dependencies of qt; I'm currently on qtwebengine, which hydra says takes 5 hours :/
It works :)
What do I do now?
the fix was merged into master, so wait for the next update of nixos-unstable (or switch your system to master :)