2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, pkg-config, autoreconfHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
glib, libzip, libserialport, check, libusb1, libftdi,
|
2021-06-28 23:13:55 +00:00
|
|
|
systemd, alsa-lib, dsview
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (dsview) version src;
|
|
|
|
|
|
|
|
pname = "libsigrok4dsl";
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
export sourceRoot=$sourceRoot/libsigrok4DSL
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
glib libzip libserialport libusb1 libftdi systemd check alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A fork of the sigrok library for usage with DSView";
|
|
|
|
homepage = "https://www.dreamsourcelab.com/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bachp ];
|
|
|
|
};
|
|
|
|
}
|