1 { lib, stdenv, fetchurl, qtbase, qtsvg, qttools, qmake, fixDarwinDylibNames }:
3 stdenv.mkDerivation rec {
7 outputs = [ "out" "dev" ];
10 url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2";
11 sha256 = "sha256-kZT2UTlV0P1zAPZxWBdQZEYBl6urGpL6EnpnpLC3FTA=";
14 propagatedBuildInputs = [ qtbase qtsvg qttools ];
15 nativeBuildInputs = [ qmake ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
18 sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
21 qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ];
23 dontWrapQtApps = true;
26 description = "Qt widgets for technical applications";
27 homepage = "http://qwt.sourceforge.net/";
28 # LGPL 2.1 plus a few exceptions (more liberal)
29 license = lib.licenses.qwt;
30 platforms = platforms.unix;
31 maintainers = [ maintainers.bjornfor ];