2021-03-14 18:50:12 +01:00
|
|
|
{ lib, stdenv, fetchurl, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline
|
2014-05-31 10:01:01 +02:00
|
|
|
# docSupport is a big dependency, disabled by default
|
|
|
|
, docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null
|
|
|
|
}:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2014-05-31 10:01:01 +02:00
|
|
|
assert docSupport -> texLive != null && texinfo != null && texi2html != null;
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2014-05-31 10:01:01 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 12:34:30 +02:00
|
|
|
pname = "avrdude";
|
|
|
|
version = "6.3";
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:24 +01:00
|
|
|
src = fetchurl {
|
2021-06-20 12:34:30 +02:00
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
2016-04-24 17:32:22 +02:00
|
|
|
sha256 = "15m1w1qad3dj7r8n5ng1qqcaiyx1gyd6hnc3p2apgjllccdp77qg";
|
2009-03-07 00:21:24 +01:00
|
|
|
};
|
2007-09-02 10:06:54 +02:00
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
configureFlags = lib.optionals docSupport "--enable-doc";
|
2014-05-31 10:01:01 +02:00
|
|
|
|
2021-03-14 18:50:12 +01:00
|
|
|
buildInputs = [ bison flex libusb-compat-0_1 libelf libftdi1 readline ]
|
2021-01-23 13:26:19 +01:00
|
|
|
++ lib.optionals docSupport [ texLive texinfo texi2html ];
|
2014-05-31 10:01:01 +02:00
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2014-05-31 10:01:01 +02:00
|
|
|
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).
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.nongnu.org/avrdude/";
|
2014-05-31 10:01:01 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-03-22 16:59:06 +01:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-05-31 10:01:01 +02:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2007-09-02 10:06:54 +02:00
|
|
|
};
|
|
|
|
}
|