nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1Index: grantlee-5.1.0/templates/lib/engine.cpp
2===================================================================
3--- grantlee-5.1.0.orig/templates/lib/engine.cpp
4+++ grantlee-5.1.0/templates/lib/engine.cpp
5@@ -48,6 +48,14 @@ Engine::Engine(QObject *parent)
6
7 d_ptr->m_pluginDirs = QCoreApplication::instance()->libraryPaths();
8 d_ptr->m_pluginDirs << QString::fromLocal8Bit(GRANTLEE_PLUGIN_PATH);
9+
10+ // Add library paths derived from NIX_PROFILES.
11+ const QByteArrayList profiles = qgetenv("NIX_PROFILES").split(' ');
12+ for (const QByteArray &profile: profiles) {
13+ if (!profile.isEmpty()) {
14+ d_ptr->m_pluginDirs << (QFile::decodeName(profile) + QStringLiteral("/lib"));
15+ }
16+ }
17 }
18
19 Engine::~Engine()