-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104171 from freezeboy/unbreak-dsview-qt515
dsview: 0.99 -> 1.12
- Loading branch information
Showing
4 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
{ stdenv, fetchFromGitHub, pkgconfig, cmake, | ||
libzip, boost, fftw, qtbase, | ||
libusb1, wrapQtAppsHook, libsigrok4dsl, libsigrokdecode4dsl | ||
{ lib, mkDerivation, fetchFromGitHub, pkgconfig, cmake | ||
, libzip, boost, fftw, qtbase, libusb1, libsigrok4dsl | ||
, libsigrokdecode4dsl, python3, fetchpatch | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
mkDerivation rec { | ||
pname = "dsview"; | ||
|
||
version = "0.99"; | ||
version = "1.12"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "DreamSourceLab"; | ||
repo = "DSView"; | ||
rev = version; | ||
sha256 = "189i3baqgn8k3aypalayss0g489xi0an9hmvyggvxmgg1cvcwka2"; | ||
rev = "v${version}"; | ||
sha256 = "q7F4FuK/moKkouXTNPZDVon/W/ZmgtNHJka4MiTxA0U="; | ||
}; | ||
|
||
postUnpack = '' | ||
export sourceRoot=$sourceRoot/DSView | ||
''; | ||
sourceRoot = "source/DSView"; | ||
|
||
patches = [ | ||
# Fix absolute install paths | ||
./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 | ||
]; | ||
|
||
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ]; | ||
nativeBuildInputs = [ cmake pkgconfig ]; | ||
|
||
buildInputs = [ | ||
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl | ||
boost fftw qtbase libusb1 libzip libsigrokdecode4dsl libsigrok4dsl | ||
python3 | ||
]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
meta = with stdenv.lib; { | ||
meta = with lib; { | ||
description = "A GUI program for supporting various instruments from DreamSourceLab, including logic analyzer, oscilloscope, etc"; | ||
homepage = "https://www.dreamsourcelab.com/"; | ||
license = licenses.gpl3Plus; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.bachp ]; | ||
maintainers = with maintainers; [ bachp ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters