2021-05-15 23:04:01 +01:00
|
|
|
{ mkDerivation, lib, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
|
2017-08-30 18:50:51 +01:00
|
|
|
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
|
2017-11-16 00:39:17 +00:00
|
|
|
, pcre, librevisa, python3, qtbase, qtsvg
|
2014-05-31 14:37:27 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-19 06:52:05 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pulseview";
|
|
|
|
version = "0.4.1";
|
2014-05-31 14:37:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-19 06:52:05 +01:00
|
|
|
url = "https://sigrok.org/download/source/pulseview/${pname}-${version}.tar.gz";
|
2019-06-01 15:54:02 +01:00
|
|
|
sha256 = "0bvgmkgz37n2bi9niskpl05hf7rsj1lj972fbrgnlz25s4ywxrwy";
|
2014-05-31 14:37:27 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-11-16 00:39:17 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
|
2019-08-19 06:52:05 +01:00
|
|
|
pcre librevisa python3
|
|
|
|
qtbase qtsvg
|
2014-05-31 14:37:27 +01:00
|
|
|
];
|
|
|
|
|
2021-05-15 23:04:01 +01: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";
|
2021-05-16 07:55:10 +01:00
|
|
|
sha256 = "07ifsis9jlc0jjp2d11f7hvw9kaxcbk0a57h2m4xsv1d7vzl9yfh";
|
2021-05-15 23:04:01 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-08-19 06:52:05 +01:00
|
|
|
meta = with lib; {
|
2014-05-31 14:37:27 +01:00
|
|
|
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-31 14:37:27 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-08-19 06:52:05 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2014-05-31 14:37:27 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|