diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/avrdude/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/misc/avrdude/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/avrdude/default.nix b/nixpkgs/pkgs/development/tools/misc/avrdude/default.nix new file mode 100644 index 000000000000..9cfd93800103 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/misc/avrdude/default.nix @@ -0,0 +1,33 @@ +{ 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 { + name = "avrdude-6.3"; + + src = fetchurl { + url = "mirror://savannah/avrdude/${name}.tar.gz"; + sha256 = "15m1w1qad3dj7r8n5ng1qqcaiyx1gyd6hnc3p2apgjllccdp77qg"; + }; + + 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 ]; + }; +} |