nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, qt4, qmake4Hook }:
2
3stdenv.mkDerivation rec {
4 pname = "qwt";
5 version = "5.2.3";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/qwt/${pname}-${version}.tar.bz2";
9 sha256 = "1dqa096mm6n3bidfq2b67nmdsvsw4ndzzd1qhl6hn8skcwqazzip";
10 };
11
12 propagatedBuildInputs = [ qt4 ];
13 nativeBuildInputs = [ qmake4Hook ];
14
15 postPatch = ''
16 sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro
17 sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri
18 '';
19
20 preConfigure = ''
21 qmakeFlags="$qmakeFlags INSTALLBASE=$out -after doc.path=$out/share/doc/${pname}-${version}"
22 '';
23
24 meta = with lib; {
25 description = "Qt widgets for technical applications";
26 homepage = "http://qwt.sourceforge.net/";
27 # LGPL 2.1 plus a few exceptions (more liberal)
28 license = lib.licenses.qwt;
29 platforms = platforms.unix;
30 maintainers = [ maintainers.bjornfor ];
31 };
32}