nixpkgs/pkgs/development/libraries/qt-5/5.8/qtdeclarative/default.nix

21 lines
528 B
Nix
Raw Normal View History

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