about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/electronics/dsview/libsigrokdecode4dsl.nix
blob: 09eed4a67c57240367b8bb58e6b3544bfd0037a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, pkg-config, autoreconfHook,
glib, check, python3, dsview
}:

stdenv.mkDerivation {
  inherit (dsview) version src;

  pname = "libsigrokdecode4dsl";

  postUnpack = ''
    export sourceRoot=$sourceRoot/libsigrokdecode4DSL
  '';

  nativeBuildInputs = [ pkg-config autoreconfHook ];

  buildInputs = [
    python3 glib check
  ];

  meta = with lib; {
    description = "A fork of the sigrokdecode library for usage with DSView";
    homepage = "https://www.dreamsourcelab.com/";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.bachp ];
  };
}