1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/tools/misc/avrdude/default.nix

34 lines
1.2 KiB
Nix
Raw Normal View History

2020-04-28 04:29:39 +01:00
{ stdenv, fetchurl, yacc, 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 {
2016-04-24 16:32:22 +01:00
name = "avrdude-6.3";
src = fetchurl {
url = "mirror://savannah/avrdude/${name}.tar.gz";
2016-04-24 16:32:22 +01:00
sha256 = "15m1w1qad3dj7r8n5ng1qqcaiyx1gyd6hnc3p2apgjllccdp77qg";
};
configureFlags = stdenv.lib.optionals docSupport "--enable-doc";
2020-04-28 04:29:39 +01:00
buildInputs = [ yacc flex libusb-compat-0_1 libelf libftdi1 readline ]
++ 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 = "https://www.nongnu.org/avrdude/";
license = licenses.gpl2Plus;
2018-03-22 15:59:06 +00:00
platforms = with platforms; linux ++ darwin;
maintainers = [ maintainers.bjornfor ];
};
}