1{ lib, stdenv, fetchgit, pkg-config, autoreconfHook, glib, python3, check, libxcrypt }:
2
3stdenv.mkDerivation rec {
4 pname = "libsigrokdecode";
5 version = "0.5.3-unstable-2023-10-23";
6
7 src = fetchgit {
8 url = "git://sigrok.org/libsigrokdecode";
9 rev = "0c35c5c5845d05e5f624c99d58af992d2f004446";
10 hash = "sha256-1kQB7uk2c+6Uriw+1o6brThDcBLoCdPV0MVWAha7ohk=";
11 };
12
13 nativeBuildInputs = [ pkg-config autoreconfHook ];
14 buildInputs = [ glib python3 libxcrypt ];
15 nativeCheckInputs = [ check ];
16 doCheck = true;
17
18 meta = with lib; {
19 description = "Protocol decoding library for the sigrok signal analysis software suite";
20 homepage = "https://sigrok.org/";
21 license = licenses.gpl3Plus;
22 platforms = platforms.linux ++ platforms.darwin;
23 maintainers = with maintainers; [ bjornfor vifino ];
24 };
25}