qwt: move to qmake4Hook
This commit is contained in:
parent
d441238b52
commit
1b032e5221
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, qt4 }:
|
{ stdenv, fetchurl, qt4, qmake4Hook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "qwt-5.2.3";
|
name = "qwt-5.2.3";
|
||||||
@ -9,13 +9,16 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ qt4 ];
|
propagatedBuildInputs = [ qt4 ];
|
||||||
|
nativeBuildInputs = [ qmake4Hook ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro
|
sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro
|
||||||
sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Qt widgets for technical applications";
|
description = "Qt widgets for technical applications";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user