{ lib, stdenv, fetchgit, pkg-config, autoreconfHook, glib, python3, check, libxcrypt, }: stdenv.mkDerivation rec { pname = "libsigrokdecode"; version = "0.5.3-unstable-2024-10-01"; src = fetchgit { url = "git://sigrok.org/libsigrokdecode"; rev = "71f451443029322d57376214c330b518efd84f88"; hash = "sha256-aW0llB/rziJxLW3OZU1VhxeM3MDWsaMVVgvDKZzdiIY="; }; nativeBuildInputs = [ pkg-config autoreconfHook ]; buildInputs = [ glib python3 libxcrypt ]; nativeCheckInputs = [ check ]; doCheck = true; meta = with lib; { description = "Protocol decoding library for the sigrok signal analysis software suite"; homepage = "https://sigrok.org/"; license = licenses.gpl3Plus; platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ bjornfor vifino ]; }; }