nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 933 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 qtbase, 6 qtsvg, 7 qttools, 8 qmake, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "qwt"; 13 version = "6.1.6"; 14 15 src = fetchurl { 16 url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2"; 17 sha256 = "sha256-mUYNMcEV7kEXsBddiF9HwsWQ14QgbwmBXcBY++Xt4fY="; 18 }; 19 20 propagatedBuildInputs = [ 21 qtbase 22 qtsvg 23 qttools 24 ]; 25 nativeBuildInputs = [ qmake ]; 26 27 postPatch = '' 28 sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri 29 ''; 30 31 qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ]; 32 33 dontWrapQtApps = true; 34 35 meta = { 36 description = "Qt widgets for technical applications"; 37 homepage = "http://qwt.sourceforge.net/"; 38 # LGPL 2.1 plus a few exceptions (more liberal) 39 license = with lib.licenses; [ 40 lgpl21Only 41 qwtException 42 ]; 43 platforms = lib.platforms.unix; 44 maintainers = [ lib.maintainers.bjornfor ]; 45 }; 46}