2024-02-29 20:09:43 +00:00
|
|
|
{ lib, stdenv, fetchgit, pkg-config, cmake, glib, boost, libsigrok
|
|
|
|
, libsigrokdecode, libserialport, libzip, libftdi1, hidapi, glibmm
|
|
|
|
, pcre, python3, qtsvg, qttools, bluez
|
|
|
|
, wrapQtAppsHook, desktopToDarwinBundle
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pulseview";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.4.2-unstable-2024-01-26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://sigrok.org/pulseview";
|
|
|
|
rev = "9b8b7342725491d626609017292fa9259f7d5e0e";
|
|
|
|
hash = "sha256-UEJunADzc1WRRfchO/n8qqxnyrSo4id1p7gLkD3CKaM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ]
|
|
|
|
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
glib boost libsigrok libsigrokdecode libserialport libzip libftdi1 hidapi glibmm
|
2022-09-30 11:47:45 +00:00
|
|
|
pcre python3
|
2023-05-24 13:37:59 +00:00
|
|
|
qtsvg
|
2024-02-29 20:09:43 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [ bluez ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
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;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor vifino ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|