qt4: parallel-build impurity fix

Modified to avoid unnecessary rebuilds.
This commit is contained in:
Vladimír Čunát 2013-04-23 21:45:09 +02:00
parent bc623ee480
commit 6a29a56c12

View file

@ -20,7 +20,7 @@ let v = "4.8.4"; in
# * move some plugins (e.g., SQL plugins) to dedicated derivations to avoid
# false build-time dependencies
stdenv.mkDerivation rec {
stdenv.mkDerivation ( rec {
name = "qt-${v}";
src = fetchurl {
@ -147,3 +147,13 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
# ToDo: this attribute is optional *only* to prevent rebuild on hydra
// stdenv.lib.optionalAttrs developerBuild {
# fix underspecified dependency in a generated makefile
postConfigure = ''
substituteInPlace tools/designer/src/lib/Makefile --replace \
"moc_qtgradientviewdialog.cpp:" "moc_qtgradientviewdialog.cpp: .uic/release-shared/ui_qtgradientview.h"
'';
}
)