Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 qtbase, 6 qtsvg, 7 qttools, 8 qmake, 9 fixDarwinDylibNames, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "qwt"; 14 version = "6.3.0"; 15 16 outputs = [ 17 "out" 18 "dev" 19 ]; 20 21 src = fetchurl { 22 url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2"; 23 sha256 = "sha256-3LCFiWwoquxVGMvAjA7itOYK2nrJKdgmOfYYmFGmEpo="; 24 }; 25 26 propagatedBuildInputs = [ 27 qtbase 28 qtsvg 29 qttools 30 ]; 31 nativeBuildInputs = [ qmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 32 33 postPatch = '' 34 sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri 35 ''; 36 37 qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ]; 38 39 dontWrapQtApps = true; 40 41 meta = with lib; { 42 description = "Qt widgets for technical applications"; 43 homepage = "http://qwt.sourceforge.net/"; 44 # LGPL 2.1 plus a few exceptions (more liberal) 45 license = lib.licenses.qwt; 46 platforms = platforms.unix; 47 maintainers = [ maintainers.bjornfor ]; 48 }; 49}