1 { lib, stdenv, fetchurl, qt4, qmake4Hook, AGL }:
3 stdenv.mkDerivation rec {
7 url = "mirror://sourceforge/qwt/${name}.tar.bz2";
8 sha256 = "0hf0mpca248xlqn7xnzkfj8drf19gdyg5syzklvq8pibxiixwxj0";
13 ] ++ lib.optionals stdenv.isDarwin [ AGL ];
15 nativeBuildInputs = [ qmake4Hook ];
17 enableParallelBuilding = true;
20 sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
23 # qwt.framework output includes a relative reference to itself, which breaks dependents
25 lib.optionalString stdenv.isDarwin ''
26 echo "Attempting to repair qwt"
27 install_name_tool -id "$out/lib/qwt.framework/Versions/6/qwt" "$out/lib/qwt.framework/Versions/6/qwt"
30 qmakeFlags = [ "-after doc.path=$out/share/doc/${name}" ];
33 description = "Qt widgets for technical applications";
34 homepage = "http://qwt.sourceforge.net/";
35 # LGPL 2.1 plus a few exceptions (more liberal)
36 license = lib.licenses.qwt;
37 platforms = platforms.linux ++ platforms.darwin;
38 maintainers = [ maintainers.bjornfor ];