mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
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 {
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user