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.

46 lines
1.6 KiB
Nix
Raw Normal View History

{ 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
}:
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";
src = fetchurl {
url = "https://sigrok.org/download/source/pulseview/pulseview-${version}.tar.gz";
hash = "sha256-8EL3ej4bNb8wZmMw427Dj6uNJIw2k8N7fjXUAcO/q8s=";
};
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
qtsvg
2023-04-30 10:18:12 +00:00
] ++ lib.optional stdenv.isLinux udev;
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";
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 {
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; {
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
homepage = "https://sigrok.org/";
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;
};
}