dsview: 1.1.2 -> 1.2.1

+24 -106
+5 -23
pkgs/applications/science/electronics/dsview/default.nix
··· 1 { lib, mkDerivation, fetchFromGitHub, pkg-config, cmake 2 - , libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl 3 - , libsigrokdecode4dsl, python3, fetchpatch 4 }: 5 6 mkDerivation rec { 7 pname = "dsview"; 8 9 - version = "1.12"; 10 11 src = fetchFromGitHub { 12 owner = "DreamSourceLab"; 13 repo = "DSView"; 14 rev = "v${version}"; 15 - sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U="; 16 }; 17 - 18 - sourceRoot = "source/DSView"; 19 20 patches = [ 21 # Fix absolute install paths 22 ./install.patch 23 - 24 - # Fix buld with Qt5.15 already merged upstream for future release 25 - # Using local file instead of content of commit #33e3d896a47 because 26 - # sourceRoot make it unappliable 27 - ./qt515.patch 28 - 29 - # Change from upstream master that removes extern-C scopes which 30 - # cause failures with modern glib. This can likely be removed if 31 - # there is an upstream release >1.12 32 - (fetchpatch { 33 - name = "fix-extern-c.patch"; 34 - url = "https://github.com/DreamSourceLab/DSView/commit/33cc733abe19872bf5ed08540a94b798d0d4ecf4.patch"; 35 - sha256 = "sha256-TLfLQa3sdyNHTpMMvId/V6uUuOFihOZMFJOj9frnDoY="; 36 - stripLen = 2; 37 - extraPrefix = ""; 38 - }) 39 ]; 40 41 nativeBuildInputs = [ cmake pkg-config ]; 42 43 buildInputs = [ 44 - boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl 45 python3 46 ]; 47
··· 1 { lib, mkDerivation, fetchFromGitHub, pkg-config, cmake 2 + , libzip, boost, fftw, qtbase, libusb1 3 + , python3, fetchpatch 4 }: 5 6 mkDerivation rec { 7 pname = "dsview"; 8 9 + version = "1.2.1"; 10 11 src = fetchFromGitHub { 12 owner = "DreamSourceLab"; 13 repo = "DSView"; 14 rev = "v${version}"; 15 + sha256 = "sha256-TE2yfzv2h77GLMkmoVGXmzs7J0l/N+n1eYxyrtnrnGU="; 16 }; 17 18 patches = [ 19 # Fix absolute install paths 20 ./install.patch 21 ]; 22 23 nativeBuildInputs = [ cmake pkg-config ]; 24 25 buildInputs = [ 26 + boost fftw qtbase libusb1 libzip 27 python3 28 ]; 29
+19 -11
pkgs/applications/science/electronics/dsview/install.patch
··· 1 diff --git a/CMakeLists.txt b/CMakeLists.txt 2 - index c1c33e1..208a184 100644 3 --- a/CMakeLists.txt 4 +++ b/CMakeLists.txt 5 - @@ -427,8 +427,8 @@ 6 - install(FILES ../NEWS31 DESTINATION share/${PROJECT_NAME} RENAME NEWS31) 7 - install(FILES ../ug25.pdf DESTINATION share/${PROJECT_NAME} RENAME ug25.pdf) 8 - install(FILES ../ug31.pdf DESTINATION share/${PROJECT_NAME} RENAME ug31.pdf) 9 - -install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/) 10 - -install(FILES DSView.desktop DESTINATION /usr/share/applications/) 11 - +install(FILES DreamSourceLab.rules DESTINATION etc/udev/rules.d/) 12 - +install(FILES DSView.desktop DESTINATION share/applications/) 13 14 - #=============================================================================== 15 - #= Packaging (handled by CPack)
··· 1 diff --git a/CMakeLists.txt b/CMakeLists.txt 2 + index eb9be42..220817c 100644 3 --- a/CMakeLists.txt 4 +++ b/CMakeLists.txt 5 + @@ -662,16 +662,8 @@ install(FILES DSView/icons/logo.svg DESTINATION share/icons/hicolor/scalable/app 6 + install(FILES DSView/icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg) 7 8 + if(CMAKE_SYSTEM_NAME MATCHES "Linux") 9 + - install(FILES DSView/DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop) 10 + - 11 + - if(IS_DIRECTORY /usr/lib/udev/rules.d) 12 + - install(FILES DSView/DreamSourceLab.rules DESTINATION /usr/lib/udev/rules.d RENAME 60-dreamsourcelab.rules) 13 + - elseif(IS_DIRECTORY /lib/udev/rules.d) 14 + - install(FILES DSView/DreamSourceLab.rules DESTINATION /lib/udev/rules.d RENAME 60-dreamsourcelab.rules) 15 + - elseif(IS_DIRECTORY /etc/udev/rules.d) 16 + - install(FILES DSView/DreamSourceLab.rules DESTINATION /etc/udev/rules.d RENAME 60-dreamsourcelab.rules) 17 + - endif() 18 + - 19 + + install(FILES DSView/DSView.desktop DESTINATION share/applications RENAME dsview.desktop) 20 + + install(FILES DSView/DreamSourceLab.rules DESTINATION etc/udev/rules.d RENAME 60-dreamsourcelab.rules) 21 + endif() 22 + 23 + install(FILES NEWS25 DESTINATION share/DSView RENAME NEWS25)
-28
pkgs/applications/science/electronics/dsview/libsigrok4dsl.nix
··· 1 - { lib, stdenv, pkg-config, autoreconfHook, 2 - glib, libzip, libserialport, check, libusb1, libftdi, 3 - systemd, alsa-lib, dsview 4 - }: 5 - 6 - stdenv.mkDerivation { 7 - inherit (dsview) version src; 8 - 9 - pname = "libsigrok4dsl"; 10 - 11 - postUnpack = '' 12 - export sourceRoot=$sourceRoot/libsigrok4DSL 13 - ''; 14 - 15 - nativeBuildInputs = [ pkg-config autoreconfHook ]; 16 - 17 - buildInputs = [ 18 - glib libzip libserialport libusb1 libftdi systemd check alsa-lib 19 - ]; 20 - 21 - meta = with lib; { 22 - description = "A fork of the sigrok library for usage with DSView"; 23 - homepage = "https://www.dreamsourcelab.com/"; 24 - license = licenses.gpl3Plus; 25 - platforms = platforms.linux; 26 - maintainers = [ maintainers.bachp ]; 27 - }; 28 - }
···
-27
pkgs/applications/science/electronics/dsview/libsigrokdecode4dsl.nix
··· 1 - { lib, stdenv, pkg-config, autoreconfHook, 2 - glib, check, python3, dsview 3 - }: 4 - 5 - stdenv.mkDerivation { 6 - inherit (dsview) version src; 7 - 8 - pname = "libsigrokdecode4dsl"; 9 - 10 - postUnpack = '' 11 - export sourceRoot=$sourceRoot/libsigrokdecode4DSL 12 - ''; 13 - 14 - nativeBuildInputs = [ pkg-config autoreconfHook ]; 15 - 16 - buildInputs = [ 17 - python3 glib check 18 - ]; 19 - 20 - meta = with lib; { 21 - description = "A fork of the sigrokdecode library for usage with DSView"; 22 - homepage = "https://www.dreamsourcelab.com/"; 23 - license = licenses.gpl3Plus; 24 - platforms = platforms.linux; 25 - maintainers = [ maintainers.bachp ]; 26 - }; 27 - }
···
-13
pkgs/applications/science/electronics/dsview/qt515.patch
··· 1 - diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp 2 - index 921d3db..16cdce9 100755 3 - --- a/pv/view/viewport.cpp 4 - +++ b/pv/view/viewport.cpp 5 - @@ -37,7 +37,7 @@ 6 - 7 - #include <QMouseEvent> 8 - #include <QStyleOption> 9 - - 10 - +#include <QPainterPath> 11 - 12 - #include <math.h> 13 -
···
-4
pkgs/top-level/all-packages.nix
··· 16820 python3 = python38; 16821 }; 16822 16823 - # special forks used for dsview 16824 - libsigrok4dsl = callPackage ../applications/science/electronics/dsview/libsigrok4dsl.nix { }; 16825 - libsigrokdecode4dsl = callPackage ../applications/science/electronics/dsview/libsigrokdecode4dsl.nix { }; 16826 - 16827 sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { }; 16828 16829 cli11 = callPackage ../development/tools/misc/cli11 { };
··· 16820 python3 = python38; 16821 }; 16822 16823 sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { }; 16824 16825 cli11 = callPackage ../development/tools/misc/cli11 { };