Merge pull request #165335 from willcohen/qwt-6.2

This commit is contained in:
Sandro 2022-03-28 14:19:09 +02:00 committed by GitHub
commit a63a39e238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 26 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, qtbase, qtsvg, qmake, pkg-config, boost, wirelesstools, iw, qwt, wrapQtAppsHook }:
{ lib, stdenv, fetchurl, qtbase, qtsvg, qmake, pkg-config, boost, wirelesstools, iw, qwt6_1, wrapQtAppsHook }:
stdenv.mkDerivation rec {
pname = "linssid";
@ -10,12 +10,12 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config qmake wrapQtAppsHook ];
buildInputs = [ qtbase qtsvg boost qwt ];
buildInputs = [ qtbase qtsvg boost qwt6_1 ];
patches = [ ./0001-unbundled-qwt.patch ];
postPatch = ''
sed -e "s|/usr/include/qt5.*$|& ${qwt}/include|" -i linssid-app/linssid-app.pro
sed -e "s|/usr/include/qt5.*$|& ${qwt6_1}/include|" -i linssid-app/linssid-app.pro
sed -e "s|/usr/include/|/nonexistent/|g" -i linssid-app/*.pro
sed -e 's|^LIBS .*= .*libboost_regex.a|LIBS += -lboost_regex|' \
-e "s|/usr|$out|g" \

View file

@ -9,7 +9,7 @@
, poco
, qtbase
, qtsvg
, libsForQt5
, qwt6_1
, nlohmann_json
, soapysdr-with-plugins
, portaudio
@ -38,7 +38,7 @@ mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config doxygen wrapQtAppsHook ];
buildInputs = [
pcre poco qtbase qtsvg libsForQt5.qwt nlohmann_json
pcre poco qtbase qtsvg qwt6_1 nlohmann_json
soapysdr-with-plugins portaudio alsa-lib muparserx python3
];

View file

@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, qtbase, qttools, qtsvg, qwt }:
{ mkDerivation, lib, fetchFromGitHub, cmake, qtbase, qttools, qtsvg, qwt6_1}:
mkDerivation rec {
pname = "caneda";
@ -12,7 +12,7 @@ mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qttools qtsvg qwt ];
buildInputs = [ qtbase qttools qtsvg qwt6_1 ];
meta = {
description = "Open source EDA software focused on easy of use and portability";

View file

@ -24,9 +24,8 @@ stdenv.mkDerivation rec {
description = "Qt widgets for technical applications";
homepage = "http://qwt.sourceforge.net/";
# LGPL 2.1 plus a few exceptions (more liberal)
license = lib.licenses.qwt;
license = licenses.qwt;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
branch = "6";
};
}

View file

@ -1,25 +1,24 @@
{ lib, stdenv, fetchurl, qt4, qmake4Hook }:
{ lib, stdenv, fetchurl, qtbase, qtsvg, qttools, qmake }:
stdenv.mkDerivation rec {
pname = "qwt";
version = "5.2.3";
version = "6.2.0";
src = fetchurl {
url = "mirror://sourceforge/qwt/${pname}-${version}.tar.bz2";
sha256 = "1dqa096mm6n3bidfq2b67nmdsvsw4ndzzd1qhl6hn8skcwqazzip";
url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2";
sha256 = "sha256-kZT2UTlV0P1zAPZxWBdQZEYBl6urGpL6EnpnpLC3FTA=";
};
propagatedBuildInputs = [ qt4 ];
nativeBuildInputs = [ qmake4Hook ];
propagatedBuildInputs = [ qtbase qtsvg qttools ];
nativeBuildInputs = [ qmake ];
postPatch = ''
sed -e "s@\$\$\[QT_INSTALL_PLUGINS\]@$out/lib/qt4/plugins@" -i designer/designer.pro
sed -e "s|INSTALLBASE.*=.*|INSTALLBASE = $out|g" -i qwtconfig.pri
sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
'';
preConfigure = ''
qmakeFlags="$qmakeFlags INSTALLBASE=$out -after doc.path=$out/share/doc/${pname}-${version}"
'';
qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ];
dontWrapQtApps = true;
meta = with lib; {
description = "Qt widgets for technical applications";

View file

@ -9,7 +9,7 @@
, pkg-config
, qttools
, qtbase
, qwt
, qwt6_1
, rtaudio
, rtmidi
}:
@ -43,7 +43,7 @@ mkDerivation rec {
buildInputs = [
qtbase
qwt
qwt6_1
rtaudio
rtmidi
];
@ -52,7 +52,7 @@ mkDerivation rec {
mkdir $out/{bin,Applications}
mv "${binname}.app" $out/Applications/
install_name_tool -change {,${qwt}/lib/}libqwt.6.dylib "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
install_name_tool -change {,${qwt6_1}/lib/}libqwt.6.dylib "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
ln -s "$out/Applications/${binname}.app/Contents/MacOS/${binname}" $out/bin/${mainProgram}
'';

View file

@ -19943,8 +19943,6 @@ with pkgs;
qv2ray = libsForQt5.callPackage ../applications/networking/qv2ray {};
qwt = callPackage ../development/libraries/qwt {};
qwt6_qt4 = callPackage ../development/libraries/qwt/6_qt4.nix {
inherit (darwin.apple_sdk.frameworks) AGL;
};

View file

@ -210,7 +210,9 @@ in (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdParty // kdeGea
quazip = callPackage ../development/libraries/quazip { };
qwt = callPackage ../development/libraries/qwt/6.nix { };
qwt = callPackage ../development/libraries/qwt/default.nix { };
qwt6_1 = callPackage ../development/libraries/qwt/6_1.nix { };
soqt = callPackage ../development/libraries/soqt { };