-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
pkgs/development/tools/sigrok-firmware-fx2lafw/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters