21 lines
528 B
Nix
Raw Normal View History

2017-05-17 14:26:11 -05:00
{ stdenv, qtSubmodule, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }:
2017-03-26 00:16:51 +01:00
with stdenv.lib;
qtSubmodule {
name = "qtdeclarative";
2017-03-26 00:16:51 +01:00
patches = copyPathsToStore (readPathsFromFile ./. ./series);
qtInputs = [ qtbase qtsvg qtxmlpatterns ];
2017-05-17 14:26:11 -05:00
nativeBuildInputs = [ python2 ];
2017-05-18 18:19:42 -05:00
outputs = [ "out" "dev" "bin" ];
2017-03-26 00:16:51 +01:00
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
'';
2017-05-18 18:19:42 -05:00
postInstall = ''
moveToOutput "$qtPluginPrefix" "$bin"
moveToOutput "$qtQmlPrefix" "$bin"
'';
}