2022-10-11 12:15:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline
|
2014-05-31 08:01:01 +00:00
|
|
|
# docSupport is a big dependency, disabled by default
|
|
|
|
, docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null
|
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2014-05-31 08:01:01 +00:00
|
|
|
assert docSupport -> texLive != null && texinfo != null && texi2html != null;
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2014-05-31 08:01:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 10:34:30 +00:00
|
|
|
pname = "avrdude";
|
2023-01-10 07:44:38 +00:00
|
|
|
version = "7.1";
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2022-10-11 12:15:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "avrdudes";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-10 07:44:38 +00:00
|
|
|
sha256 = "sha256-pGjOefWnf11kG/zFGwYGet1OjAhKsULNGgh6vqvIQ7c=";
|
2009-03-06 23:21:24 +00:00
|
|
|
};
|
2007-09-02 08:06:54 +00:00
|
|
|
|
2022-10-11 12:15:55 +00:00
|
|
|
nativeBuildInputs = [ cmake bison flex ];
|
2014-05-31 08:01:01 +00:00
|
|
|
|
2022-10-11 12:15:55 +00:00
|
|
|
buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]
|
2021-01-23 12:26:19 +00:00
|
|
|
++ lib.optionals docSupport [ texLive texinfo texi2html ];
|
2014-05-31 08:01:01 +00:00
|
|
|
|
2022-10-11 12:15:55 +00:00
|
|
|
cmakeFlags = lib.optionals docSupport [
|
|
|
|
"-DBUILD_DOC=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2014-05-31 08:01:01 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://www.nongnu.org/avrdude/";
|
2014-05-31 08:01:01 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-03-22 15:59:06 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-05-31 08:01:01 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2007-09-02 08:06:54 +00:00
|
|
|
};
|
|
|
|
}
|