2495e3f88b
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
34 lines
1.2 KiB
Nix
34 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline
|
|
# docSupport is a big dependency, disabled by default
|
|
, docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null
|
|
}:
|
|
|
|
assert docSupport -> texLive != null && texinfo != null && texi2html != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "avrdude";
|
|
version = "6.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-qb5wZvcKnc9L8HNvz1MdtqMlCu0aJMxkOt0nZBtxEPk=";
|
|
};
|
|
|
|
configureFlags = lib.optionals docSupport "--enable-doc";
|
|
|
|
buildInputs = [ bison flex libusb-compat-0_1 libelf libftdi1 readline ]
|
|
++ lib.optionals docSupport [ texLive texinfo texi2html ];
|
|
|
|
meta = with lib; {
|
|
description = "Command-line tool for programming Atmel AVR microcontrollers";
|
|
longDescription = ''
|
|
AVRDUDE (AVR Downloader/UploaDEr) is an utility to
|
|
download/upload/manipulate the ROM and EEPROM contents of AVR
|
|
microcontrollers using the in-system programming technique (ISP).
|
|
'';
|
|
homepage = "https://www.nongnu.org/avrdude/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = with platforms; linux ++ darwin;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|