2017-05-17 20:26:11 +01:00
|
|
|
{ stdenv, qtSubmodule, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }:
|
2017-03-25 23:16:51 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2017-02-28 15:37:57 +00:00
|
|
|
|
|
|
|
qtSubmodule {
|
|
|
|
name = "qtdeclarative";
|
2017-03-25 23:16:51 +00:00
|
|
|
patches = copyPathsToStore (readPathsFromFile ./. ./series);
|
2017-02-28 15:37:57 +00:00
|
|
|
qtInputs = [ qtbase qtsvg qtxmlpatterns ];
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ python2 ];
|
2017-09-27 01:00:23 +01:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2017-03-25 23:16:51 +00:00
|
|
|
|
2017-05-15 12:44:33 +01:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
|
|
|
|
'';
|
2017-05-19 00:19:42 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "$qtPluginPrefix" "$bin"
|
|
|
|
moveToOutput "$qtQmlPrefix" "$bin"
|
|
|
|
'';
|
2017-02-28 15:37:57 +00:00
|
|
|
}
|