depot/third_party/nixpkgs/pkgs/applications/science/electronics/pulseview/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

64 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchgit
, pkg-config
, cmake
, glib
, boost
, libsigrok
, libsigrokdecode
, libserialport
, libzip
, libftdi1
, hidapi
, glibmm
, pcre
, python3
, qtsvg
, qttools
, bluez
, wrapQtAppsHook
, desktopToDarwinBundle
}:
stdenv.mkDerivation rec {
pname = "pulseview";
version = "0.4.2-unstable-2024-03-14";
src = fetchgit {
url = "git://sigrok.org/pulseview";
rev = "d00efc65ef47090b71c4da12797056033bee795f";
hash = "sha256-MwfMUqV3ejxesg+3cFeXVB5hwg4r0cOCgHJuH3ZLmNE=";
};
nativeBuildInputs = [
cmake
pkg-config
qttools
wrapQtAppsHook
] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
buildInputs = [
glib
boost
libsigrok
libsigrokdecode
libserialport
libzip
libftdi1
hidapi
glibmm
pcre
python3
qtsvg
] ++ lib.optionals stdenv.hostPlatform.isLinux [ bluez ];
meta = with lib; {
description = "Qt-based LA/scope/MSO GUI for sigrok (a signal analysis software suite)";
mainProgram = "pulseview";
homepage = "https://sigrok.org/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjornfor vifino ];
platforms = platforms.unix;
};
}