2021-07-27 07:53:03 +02:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, python3, check }:
|
2014-05-18 22:28:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 12:34:30 +02:00
|
|
|
pname = "libsigrokdecode";
|
|
|
|
version = "0.5.3";
|
2014-05-18 22:28:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 12:34:30 +02:00
|
|
|
url = "https://sigrok.org/download/source/${pname}/${pname}-${version}.tar.gz";
|
2019-12-23 21:30:04 +01:00
|
|
|
sha256 = "1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265";
|
2014-05-18 22:28:44 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-07-27 07:53:03 +02:00
|
|
|
buildInputs = [ glib python3 ];
|
|
|
|
checkInputs = [ check ];
|
|
|
|
doCheck = true;
|
2014-05-18 22:28:44 +02:00
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2014-05-18 22:28:44 +02:00
|
|
|
description = "Protocol decoding library for the sigrok signal analysis software suite";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-18 22:28:44 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2019-06-06 01:05:37 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-05-18 22:28:44 +02:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|