diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/qwt')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/qwt/6_1.nix | 31 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/qwt/6_qt4.nix | 42 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/qwt/default.nix | 33 |
3 files changed, 106 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/qwt/6_1.nix b/nixpkgs/pkgs/development/libraries/qwt/6_1.nix new file mode 100644 index 000000000000..4e3a179e7520 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/qwt/6_1.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchurl, qtbase, qtsvg, qttools, qmake }: + +stdenv.mkDerivation rec { + pname = "qwt"; + version = "6.1.6"; + + src = fetchurl { + url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2"; + sha256 = "sha256-mUYNMcEV7kEXsBddiF9HwsWQ14QgbwmBXcBY++Xt4fY="; + }; + + propagatedBuildInputs = [ qtbase qtsvg qttools ]; + nativeBuildInputs = [ qmake ]; + + postPatch = '' + sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri + ''; + + qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ]; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Qt widgets for technical applications"; + homepage = "http://qwt.sourceforge.net/"; + # LGPL 2.1 plus a few exceptions (more liberal) + license = licenses.qwt; + platforms = platforms.unix; + maintainers = [ maintainers.bjornfor ]; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/qwt/6_qt4.nix b/nixpkgs/pkgs/development/libraries/qwt/6_qt4.nix new file mode 100644 index 000000000000..021fa0ba57d4 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/qwt/6_qt4.nix @@ -0,0 +1,42 @@ +{ lib, stdenv, fetchurl, qt4, qmake4Hook, AGL }: + +stdenv.mkDerivation rec { + pname = "qwt"; + version = "6.1.5"; + + src = fetchurl { + url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2"; + sha256 = "0hf0mpca248xlqn7xnzkfj8drf19gdyg5syzklvq8pibxiixwxj0"; + }; + + buildInputs = [ + qt4 + ] ++ lib.optionals stdenv.isDarwin [ AGL ]; + + nativeBuildInputs = [ qmake4Hook ]; + + enableParallelBuilding = true; + + postPatch = '' + sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri + ''; + + # qwt.framework output includes a relative reference to itself, which breaks dependents + preFixup = + lib.optionalString stdenv.isDarwin '' + echo "Attempting to repair qwt" + install_name_tool -id "$out/lib/qwt.framework/Versions/6/qwt" "$out/lib/qwt.framework/Versions/6/qwt" + ''; + + qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ]; + + meta = with lib; { + description = "Qt widgets for technical applications"; + homepage = "http://qwt.sourceforge.net/"; + # LGPL 2.1 plus a few exceptions (more liberal) + license = lib.licenses.qwt; + platforms = platforms.linux ++ platforms.darwin; + maintainers = [ maintainers.bjornfor ]; + branch = "6"; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/qwt/default.nix b/nixpkgs/pkgs/development/libraries/qwt/default.nix new file mode 100644 index 000000000000..e74f8300bf72 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/qwt/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchurl, qtbase, qtsvg, qttools, qmake }: + +stdenv.mkDerivation rec { + pname = "qwt"; + version = "6.2.0"; + + outputs = [ "out" "dev" ]; + + src = fetchurl { + url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2"; + sha256 = "sha256-kZT2UTlV0P1zAPZxWBdQZEYBl6urGpL6EnpnpLC3FTA="; + }; + + propagatedBuildInputs = [ qtbase qtsvg qttools ]; + nativeBuildInputs = [ qmake ]; + + postPatch = '' + sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri + ''; + + qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ]; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Qt widgets for technical applications"; + homepage = "http://qwt.sourceforge.net/"; + # LGPL 2.1 plus a few exceptions (more liberal) + license = lib.licenses.qwt; + platforms = platforms.unix; + maintainers = [ maintainers.bjornfor ]; + }; +} |