2022-10-26 20:32:40 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, glib, python3, check, libxcrypt }:
|
2014-05-18 21:28:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 11:34:30 +01:00
|
|
|
pname = "libsigrokdecode";
|
|
|
|
version = "0.5.3";
|
2014-05-18 21:28:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 11:34:30 +01:00
|
|
|
url = "https://sigrok.org/download/source/${pname}/${pname}-${version}.tar.gz";
|
2019-12-23 20:30:04 +00:00
|
|
|
sha256 = "1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265";
|
2014-05-18 21:28:44 +01:00
|
|
|
};
|
|
|
|
|
2022-10-26 20:32:40 +01:00
|
|
|
# upstream was rleased before Python 3.9 and thus only checks versions up to 3.8
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace '[python-3.8-embed]' '[python3-embed]'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2022-09-30 01:10:16 +01:00
|
|
|
buildInputs = [ glib python3 libxcrypt ];
|
2021-07-27 06:53:03 +01:00
|
|
|
checkInputs = [ check ];
|
|
|
|
doCheck = true;
|
2014-05-18 21:28:44 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2014-05-18 21:28:44 +01:00
|
|
|
description = "Protocol decoding library for the sigrok signal analysis software suite";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-18 21:28:44 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-06-06 00:05:37 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-05-18 21:28:44 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|