2019-01-17 02:57:29 +01:00
|
|
|
{ qtModule, lib, python2, qtbase, qtsvg }:
|
2017-10-24 13:39:54 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
name = "qtdeclarative";
|
2019-01-17 02:57:29 +01:00
|
|
|
qtInputs = [ qtbase qtsvg ];
|
2017-10-24 13:39:54 +02:00
|
|
|
nativeBuildInputs = [ python2 ];
|
|
|
|
outputs = [ "out" "dev" "bin" ];
|
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
|
|
|
|
'';
|
2018-05-26 09:05:18 +02:00
|
|
|
configureFlags = lib.optionals (lib.versionAtLeast qtbase.version "5.11.0") [ "-qml-debug" ];
|
2017-10-24 13:39:54 +02:00
|
|
|
devTools = [
|
|
|
|
"bin/qml"
|
|
|
|
"bin/qmlcachegen"
|
|
|
|
"bin/qmleasing"
|
|
|
|
"bin/qmlimportscanner"
|
|
|
|
"bin/qmllint"
|
|
|
|
"bin/qmlmin"
|
|
|
|
"bin/qmlplugindump"
|
|
|
|
"bin/qmlprofiler"
|
|
|
|
"bin/qmlscene"
|
|
|
|
"bin/qmltestrunner"
|
|
|
|
];
|
|
|
|
}
|