Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / sigrok-firmware-fx2lafw / default.nix
blob86b1f3be33c1c1ee72b882ff6193c24538414502
1 { lib
2 , stdenv
3 , fetchurl
4 , sdcc
5 }:
7 stdenv.mkDerivation rec {
8   pname = "sigrok-firmware-fx2lafw";
9   version = "0.1.7";
11   src = fetchurl {
12     url = "https://sigrok.org/download/source/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-${version}.tar.gz";
13     sha256 = "sha256-o/RA1qhSpG4sXRmfwcjk2s0Aa8BODVV2KY7lXQVqzjs=";
14   };
16   enableParallelBuilding = true;
18   nativeBuildInputs = [ sdcc ];
20   meta = with lib; {
21     description = "Firmware for FX2 logic analyzers";
22     homepage = "https://sigrok.org/";
24     # licensing details explained in:
25     # https://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=blob;f=README;hb=HEAD#l122
26     license = with licenses; [
27       gpl2Plus    # overall
28       lgpl21Plus  # fx2lib, Hantek 6022BE, Sainsmart DDS120 firmwares
29     ];
31     sourceProvenance = with sourceTypes; [ fromSource ];
32     platforms = platforms.all;
33     maintainers = with maintainers; [ panicgh ];
34   };