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