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