3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/electronics/pulseview/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.5 KiB
Nix
Raw Normal View History

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
2022-09-23 17:15:43 +01:00
, pcre, python3, qtbase, qtsvg, qttools
}:
2019-08-19 06:52:05 +01:00
mkDerivation rec {
pname = "pulseview";
2022-08-14 09:12:20 +01:00
version = "0.4.2";
src = fetchurl {
2019-08-19 06:52:05 +01:00
url = "https://sigrok.org/download/source/pulseview/${pname}-${version}.tar.gz";
2022-08-14 09:12:20 +01:00
sha256 = "1jxbpz1h3m1mgrxw74rnihj8vawgqdpf6c33cqqbyd8v7rxgfhph";
};
nativeBuildInputs = [ cmake pkg-config ];
2017-11-16 00:39:17 +00:00
buildInputs = [
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
2022-09-23 17:15:43 +01:00
pcre python3
2022-08-14 09:12:20 +01:00
qtbase qtsvg qttools
];
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
})
2022-12-25 23:25:25 +00:00
# Fixes replaced/obsolete Qt methods
(fetchpatch {
url = "https://github.com/sigrokproject/pulseview/commit/ae726b70a7ada9a4be5808e00f0c951318479684.patch";
sha256 = "1rg8azin2b7gmp68bn3z398swqlg15ddyp4xynrz49wj44cgxsdv";
})
2021-05-15 23:04:01 +01:00
];
2019-08-19 06:52:05 +01: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;
2019-08-19 06:52:05 +01:00
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux;
};
}