qt-5: Prevent some unnecessary runtime dependencies

The file $out/mkspecs/qconfig.pri contains a list of all include /
library paths used during the build, including build-time-only
packages like GDB and Ruby. So get rid of those.
This commit is contained in:
Eelco Dolstra 2014-05-24 12:35:05 +02:00
parent 1cfea9bd1a
commit 39f994cd60

View File

@ -141,7 +141,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python perl pkgconfig ];
postInstall = if buildDocs then "make docs&&make install_docs" else "";
postInstall =
''
${optionalString buildDocs ''
make docs && make install_docs
''}
# Don't retain build-time dependencies like gdb and ruby.
sed '/QMAKE_DEFAULT_.*DIRS/ d' -i $out/mkspecs/qconfig.pri
'';
#enableParallelBuilding = true; # often fails on Hydra, as well as qt4