2021-05-20 23:08:51 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
|
2022-09-30 11:47:45 +00:00
|
|
|
, pcre, python3, qtbase, qtsvg, qttools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pulseview";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://sigrok.org/download/source/pulseview/${pname}-${version}.tar.gz";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "1jxbpz1h3m1mgrxw74rnihj8vawgqdpf6c33cqqbyd8v7rxgfhph";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
|
2022-09-30 11:47:45 +00:00
|
|
|
pcre python3
|
2022-08-21 13:32:41 +00:00
|
|
|
qtbase qtsvg qttools
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +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";
|
|
|
|
sha256 = "07ifsis9jlc0jjp2d11f7hvw9kaxcbk0a57h2m4xsv1d7vzl9yfh";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
|
|
|
|
homepage = "https://sigrok.org/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|