From ff4d8513b435cbb9858a6e714f5e50e0d9ae069a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 9 Nov 2015 18:15:40 +0100 Subject: [PATCH] qtcreator: add qtdeclarative to QML2_IMPORT_PATH When building with Qt 5.4 this is not a problem, but with Qt 5.5 (tested locally), it is clear that this dependency is missing: $ ./result/bin/qtcreator file:///nix/store/zmpf6ydrjdydd85wh6splpywv6aj4782-qtcreator-3.4.2/share/qtcreator/welcomescreen/welcomescreen.qml:31:1: module "QtQuick" is not installed import QtQuick 2.1 ^ With Qt 5.4 something else is pulling in the qtdeclarative dependency, it can be seen in the qtcreator wrapper script. Note to self: "import QtQuick" != qtquickcontrols. QtQuick is apparently located in the qtdeclarative module. --- pkgs/development/qtcreator/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/qtcreator/default.nix b/pkgs/development/qtcreator/default.nix index 8dabd3347fc8..b2460c768f2f 100644 --- a/pkgs/development/qtcreator/default.nix +++ b/pkgs/development/qtcreator/default.nix @@ -46,6 +46,7 @@ stdenv.mkDerivation rec { __EOF__ # Wrap the qtcreator binary addToSearchPath QML2_IMPORT_PATH "${qtLib.quickcontrols}/lib/qt5/qml" + addToSearchPath QML2_IMPORT_PATH "${qtLib.declarative}/lib/qt5/qml" wrapProgram $out/bin/qtcreator \ --prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \ --prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \