lol

qwt: move to qmake4Hook

+5 -2
+5 -2
pkgs/development/libraries/qwt/default.nix
··· 1 - { stdenv, fetchurl, qt4 }: 1 + { stdenv, fetchurl, qt4, qmake4Hook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "qwt-5.2.3"; ··· 9 9 }; 10 10 11 11 propagatedBuildInputs = [ qt4 ]; 12 + nativeBuildInputs = [ qmake4Hook ]; 12 13 13 14 postPatch = '' 14 15 sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro 15 16 sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri 16 17 ''; 17 18 18 - configurePhase = ''qmake INSTALLBASE=$out -after doc.path=$out/share/doc/${name} -r''; 19 + preConfigure = '' 20 + qmakeFlags="$qmakeFlags INSTALLBASE=$out -after doc.path=$out/share/doc/${name}" 21 + ''; 19 22 20 23 meta = with stdenv.lib; { 21 24 description = "Qt widgets for technical applications";