Merge pull request #200871 from lorenz/update-dsview
dsview: 1.1.2 -> 1.2.1
This commit is contained in:
commit
b85c2a060f
6 changed files with 24 additions and 106 deletions
|
@ -1,47 +1,29 @@
|
||||||
{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake
|
{ lib, mkDerivation, fetchFromGitHub, pkg-config, cmake
|
||||||
, libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl
|
, libzip, boost, fftw, qtbase, libusb1
|
||||||
, libsigrokdecode4dsl, python3, fetchpatch
|
, python3, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "dsview";
|
pname = "dsview";
|
||||||
|
|
||||||
version = "1.12";
|
version = "1.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "DreamSourceLab";
|
owner = "DreamSourceLab";
|
||||||
repo = "DSView";
|
repo = "DSView";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U=";
|
sha256 = "sha256-TE2yfzv2h77GLMkmoVGXmzs7J0l/N+n1eYxyrtnrnGU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "source/DSView";
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Fix absolute install paths
|
# Fix absolute install paths
|
||||||
./install.patch
|
./install.patch
|
||||||
|
|
||||||
# Fix buld with Qt5.15 already merged upstream for future release
|
|
||||||
# Using local file instead of content of commit #33e3d896a47 because
|
|
||||||
# sourceRoot make it unappliable
|
|
||||||
./qt515.patch
|
|
||||||
|
|
||||||
# Change from upstream master that removes extern-C scopes which
|
|
||||||
# cause failures with modern glib. This can likely be removed if
|
|
||||||
# there is an upstream release >1.12
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-extern-c.patch";
|
|
||||||
url = "https://github.com/DreamSourceLab/DSView/commit/33cc733abe19872bf5ed08540a94b798d0d4ecf4.patch";
|
|
||||||
sha256 = "sha256-TLfLQa3sdyNHTpMMvId/V6uUuOFihOZMFJOj9frnDoY=";
|
|
||||||
stripLen = 2;
|
|
||||||
extraPrefix = "";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl
|
boost fftw qtbase libusb1 libzip
|
||||||
python3
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,23 @@
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index c1c33e1..208a184 100644
|
index eb9be42..220817c 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -427,8 +427,8 @@
|
@@ -662,16 +662,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/icons/hicolor/scalable/app
|
||||||
install(FILES ../NEWS31 DESTINATION share/${PROJECT_NAME} RENAME NEWS31)
|
install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
|
||||||
install(FILES ../ug25.pdf DESTINATION share/${PROJECT_NAME} RENAME ug25.pdf)
|
|
||||||
install(FILES ../ug31.pdf DESTINATION share/${PROJECT_NAME} RENAME ug31.pdf)
|
|
||||||
-install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)
|
|
||||||
-install(FILES DSView.desktop DESTINATION /usr/share/applications/)
|
|
||||||
+install(FILES DreamSourceLab.rules DESTINATION etc/udev/rules.d/)
|
|
||||||
+install(FILES DSView.desktop DESTINATION share/applications/)
|
|
||||||
|
|
||||||
#===============================================================================
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
#= Packaging (handled by CPack)
|
- install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
|
||||||
|
-
|
||||||
|
- if(IS_DIRECTORY /usr/lib/udev/rules.d)
|
||||||
|
- install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
||||||
|
- elseif(IS_DIRECTORY /lib/udev/rules.d)
|
||||||
|
- install(FILES DSView/DreamSourceLab.rules DESTINATION /lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
||||||
|
- elseif(IS_DIRECTORY /etc/udev/rules.d)
|
||||||
|
- install(FILES DSView/DreamSourceLab.rules DESTINATION /etc/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
||||||
|
- endif()
|
||||||
|
-
|
||||||
|
+ install(FILES DSView/DSView.desktop DESTINATION share/applications RENAME dsview.desktop)
|
||||||
|
+ install(FILES DSView/DreamSourceLab.rules DESTINATION etc/udev/rules.d RENAME 60-dreamsourcelab.rules)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(FILES NEWS25 DESTINATION share/DSView RENAME NEWS25)
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
{ lib, stdenv, pkg-config, autoreconfHook,
|
|
||||||
glib, libzip, libserialport, check, libusb1, libftdi,
|
|
||||||
systemd, alsa-lib, dsview
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (dsview) version src;
|
|
||||||
|
|
||||||
pname = "libsigrok4dsl";
|
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
export sourceRoot=$sourceRoot/libsigrok4DSL
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
glib libzip libserialport libusb1 libftdi systemd check alsa-lib
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A fork of the sigrok library for usage with DSView";
|
|
||||||
homepage = "https://www.dreamsourcelab.com/";
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = [ maintainers.bachp ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
{ lib, stdenv, pkg-config, autoreconfHook,
|
|
||||||
glib, check, python3, dsview
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit (dsview) version src;
|
|
||||||
|
|
||||||
pname = "libsigrokdecode4dsl";
|
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
export sourceRoot=$sourceRoot/libsigrokdecode4DSL
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
python3 glib check
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A fork of the sigrokdecode library for usage with DSView";
|
|
||||||
homepage = "https://www.dreamsourcelab.com/";
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = [ maintainers.bachp ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp
|
|
||||||
index 921d3db..16cdce9 100755
|
|
||||||
--- a/pv/view/viewport.cpp
|
|
||||||
+++ b/pv/view/viewport.cpp
|
|
||||||
@@ -37,7 +37,7 @@
|
|
||||||
|
|
||||||
#include <QMouseEvent>
|
|
||||||
#include <QStyleOption>
|
|
||||||
-
|
|
||||||
+#include <QPainterPath>
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
|
@ -16821,10 +16821,6 @@ with pkgs;
|
||||||
|
|
||||||
libsigrokdecode = callPackage ../development/tools/libsigrokdecode { };
|
libsigrokdecode = callPackage ../development/tools/libsigrokdecode { };
|
||||||
|
|
||||||
# special forks used for dsview
|
|
||||||
libsigrok4dsl = callPackage ../applications/science/electronics/dsview/libsigrok4dsl.nix { };
|
|
||||||
libsigrokdecode4dsl = callPackage ../applications/science/electronics/dsview/libsigrokdecode4dsl.nix { };
|
|
||||||
|
|
||||||
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
|
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
|
||||||
|
|
||||||
cli11 = callPackage ../development/tools/misc/cli11 { };
|
cli11 = callPackage ../development/tools/misc/cli11 { };
|
||||||
|
|
Loading…
Reference in a new issue