nixpkgs/pkgs/development/tools/sigrok-firmware-fx2lafw/default.nix
Nicolas Benes bc36ea147b sigrok-firmware-fx2lafw: init at 0.1.7
Cross-compile the firmware files instead of downloading the binaries.
Bump 0.1.6 -> 0.1.7.
2022-08-16 15:51:13 +02:00

36 lines
921 B
Nix

{ 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 ];
};
}