5fc5f15206
In Qt-5.12, the order of the dependency between these two packages flipped. A symptom of the problem is an error like, `module "QtQuick.XmlListModel" is not installed`. The upstream changes that this reflects are in qtxmlpatterns <8c6e24329e
> and qtdeclarative <0477a057fd
>
26 lines
617 B
Nix
26 lines
617 B
Nix
{ qtModule, lib, python2, qtbase, qtsvg }:
|
|
|
|
with lib;
|
|
|
|
qtModule {
|
|
name = "qtdeclarative";
|
|
qtInputs = [ qtbase qtsvg ];
|
|
nativeBuildInputs = [ python2 ];
|
|
outputs = [ "out" "dev" "bin" ];
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
|
|
'';
|
|
configureFlags = lib.optionals (lib.versionAtLeast qtbase.version "5.11.0") [ "-qml-debug" ];
|
|
devTools = [
|
|
"bin/qml"
|
|
"bin/qmlcachegen"
|
|
"bin/qmleasing"
|
|
"bin/qmlimportscanner"
|
|
"bin/qmllint"
|
|
"bin/qmlmin"
|
|
"bin/qmlplugindump"
|
|
"bin/qmlprofiler"
|
|
"bin/qmlscene"
|
|
"bin/qmltestrunner"
|
|
];
|
|
}
|