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