nixpkgs/pkgs/development/embedded/avrdude/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.3 KiB
Nix
Raw Normal View History

2022-10-11 12:15:55 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, 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 {
pname = "avrdude";
2023-01-10 07:44:38 +00:00
version = "7.1";
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=";
};
2022-10-11 12:15:55 +00:00
nativeBuildInputs = [ cmake bison flex ];
2022-10-11 12:15:55 +00:00
buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]
++ lib.optionals docSupport [ texLive texinfo texi2html ];
2022-10-11 12:15:55 +00:00
cmakeFlags = lib.optionals docSupport [
"-DBUILD_DOC=ON"
];
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;
2018-03-22 15:59:06 +00:00
platforms = with platforms; linux ++ darwin;
maintainers = [ maintainers.bjornfor ];
};
}