summary refs log tree commit diff
path: root/pkgs/development/tools/libsigrokdecode/default.nix
blob: 7c8ad17c5a089e4e005c7f378fc581ddbcaf68dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, fetchurl, pkg-config, glib, python3, libsigrok, check }:

stdenv.mkDerivation rec {
  pname = "libsigrokdecode";
  version = "0.5.3";

  src = fetchurl {
    url = "https://sigrok.org/download/source/${pname}/${pname}-${version}.tar.gz";
    sha256 = "1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ glib python3 libsigrok check ];

  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 = [ maintainers.bjornfor ];
  };
}