qwt: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:50:08 +03:00
parent d441238b52
commit 1b032e5221

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt4 }:
{ stdenv, fetchurl, qt4, qmake4Hook }:
stdenv.mkDerivation rec {
name = "qwt-5.2.3";
@ -9,13 +9,16 @@ stdenv.mkDerivation rec {
};
propagatedBuildInputs = [ qt4 ];
nativeBuildInputs = [ qmake4Hook ];
postPatch = ''
sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro
sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri
'';
configurePhase = ''qmake INSTALLBASE=$out -after doc.path=$out/share/doc/${name} -r'';
preConfigure = ''
qmakeFlags="$qmakeFlags INSTALLBASE=$out -after doc.path=$out/share/doc/${name}"
'';
meta = with stdenv.lib; {
description = "Qt widgets for technical applications";