2023-04-21 21:50:30 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
|
2017-08-30 17:50:51 +00:00
|
|
|
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
|
2023-04-30 10:18:12 +00:00
|
|
|
, pcre, python3, qtsvg, qttools, wrapQtAppsHook, desktopToDarwinBundle
|
2014-05-31 13:37:27 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-21 21:50:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-19 05:52:05 +00:00
|
|
|
pname = "pulseview";
|
2022-08-14 08:12:20 +00:00
|
|
|
version = "0.4.2";
|
2014-05-31 13:37:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-21 21:50:30 +00:00
|
|
|
url = "https://sigrok.org/download/source/pulseview/pulseview-${version}.tar.gz";
|
|
|
|
hash = "sha256-8EL3ej4bNb8wZmMw427Dj6uNJIw2k8N7fjXUAcO/q8s=";
|
2014-05-31 13:37:27 +00:00
|
|
|
};
|
|
|
|
|
2023-04-30 10:18:12 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ]
|
|
|
|
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
2017-11-16 00:39:17 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-30 10:18:12 +00:00
|
|
|
glib boost libsigrok libsigrokdecode libserialport libzip libusb1 libftdi1 glibmm
|
2022-09-23 16:15:43 +00:00
|
|
|
pcre python3
|
2023-04-21 21:50:30 +00:00
|
|
|
qtsvg
|
2023-04-30 10:18:12 +00:00
|
|
|
] ++ lib.optional stdenv.isLinux udev;
|
2014-05-31 13:37:27 +00:00
|
|
|
|
2021-05-15 22:04:01 +00:00
|
|
|
patches = [
|
|
|
|
# Allow building with glib 2.68
|
|
|
|
# PR at https://github.com/sigrokproject/pulseview/pull/39
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/sigrokproject/pulseview/commit/fb89dd11f2a4a08b73c498869789e38677181a8d.patch";
|
2023-04-21 21:50:30 +00:00
|
|
|
hash = "sha256-0PlE/z4tbN1JFfAUBeZiXc3ENzwuhCaulIBRmXTULh4=";
|
2021-05-15 22:04:01 +00:00
|
|
|
})
|
2022-12-25 23:25:25 +00:00
|
|
|
# Fixes replaced/obsolete Qt methods
|
|
|
|
(fetchpatch {
|
2023-04-21 21:50:30 +00:00
|
|
|
url = "https://github.com/sigrokproject/pulseview/commit/ae726b70a7ada9a4be5808e00f0c951318479684.patch";
|
|
|
|
hash = "sha256-6bFXFAnTO+MBUmslw55gWWSCCPwnejqKGpHeJOoH0e8=";
|
|
|
|
})
|
2021-05-15 22:04:01 +00:00
|
|
|
];
|
|
|
|
|
2019-08-19 05:52:05 +00:00
|
|
|
meta = with lib; {
|
2014-05-31 13:37:27 +00:00
|
|
|
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-31 13:37:27 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-08-19 05:52:05 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2023-04-30 10:18:12 +00:00
|
|
|
platforms = platforms.unix;
|
2014-05-31 13:37:27 +00:00
|
|
|
};
|
|
|
|
}
|