qt5.qwt: move to qmakeHook

This reverts commit 8779e0f274.
This commit is contained in:
Nikolay Amiantov 2016-04-16 23:01:26 +03:00
parent 82af8640e3
commit d441238b52
2 changed files with 4 additions and 11 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, qtbase, qtsvg, qttools }:
{ stdenv, fetchurl, qtbase, qtsvg, qttools, qmakeHook }:
stdenv.mkDerivation rec {
name = "qwt-6.1.2";
@ -9,16 +9,13 @@ stdenv.mkDerivation rec {
};
propagatedBuildInputs = [ qtbase qtsvg qttools ];
nativeBuildInputs = [ qmakeHook ];
postPatch = ''
sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
'';
configurePhase = ''
runHook preConfigure
qmake -after doc.path=$out/share/doc/${name} -r
runHook postConfigure
'';
qmakeFlags = [ "-after doc.path=$out/share/doc/${name}" ];
meta = with stdenv.lib; {
description = "Qt widgets for technical applications";

View File

@ -15,11 +15,7 @@ stdenv.mkDerivation rec {
sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri
'';
configurePhase = ''
runHook preConfigure
qmake INSTALLBASE=$out -after doc.path=$out/share/doc/${name} -r
runHook postConfigure
'';
configurePhase = ''qmake INSTALLBASE=$out -after doc.path=$out/share/doc/${name} -r'';
meta = with stdenv.lib; {
description = "Qt widgets for technical applications";