1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/qt-5/5.9/qtdeclarative/default.nix

21 lines
528 B
Nix
Raw Normal View History

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;
qtSubmodule {
name = "qtdeclarative";
2017-03-25 23:16:51 +00:00
patches = copyPathsToStore (readPathsFromFile ./. ./series);
qtInputs = [ qtbase qtsvg qtxmlpatterns ];
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ python2 ];
outputs = [ "bin" "dev" "out" ];
2017-03-25 23:16:51 +00: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"
'';
}