about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/sigrok-firmware-fx2lafw/default.nix
blob: 86b1f3be33c1c1ee72b882ff6193c24538414502 (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
28
29
30
31
32
33
34
35
{ lib
, stdenv
, fetchurl
, sdcc
}:

stdenv.mkDerivation rec {
  pname = "sigrok-firmware-fx2lafw";
  version = "0.1.7";

  src = fetchurl {
    url = "https://sigrok.org/download/source/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-${version}.tar.gz";
    sha256 = "sha256-o/RA1qhSpG4sXRmfwcjk2s0Aa8BODVV2KY7lXQVqzjs=";
  };

  enableParallelBuilding = true;

  nativeBuildInputs = [ sdcc ];

  meta = with lib; {
    description = "Firmware for FX2 logic analyzers";
    homepage = "https://sigrok.org/";

    # licensing details explained in:
    # https://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=blob;f=README;hb=HEAD#l122
    license = with licenses; [
      gpl2Plus    # overall
      lgpl21Plus  # fx2lib, Hantek 6022BE, Sainsmart DDS120 firmwares
    ];

    sourceProvenance = with sourceTypes; [ fromSource ];
    platforms = platforms.all;
    maintainers = with maintainers; [ panicgh ];
  };
}