Merge pull request #195517 from wegank/avrdude-darwin

avrdude: fix build on aarch64-darwin
This commit is contained in:
Jörg Thalheim 2022-10-11 14:40:39 +02:00 committed by GitHub
commit 56a2ea8db4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline
# docSupport is a big dependency, disabled by default # docSupport is a big dependency, disabled by default
, docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null , docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null
}: }:
@ -9,16 +9,22 @@ stdenv.mkDerivation rec {
pname = "avrdude"; pname = "avrdude";
version = "7.0"; version = "7.0";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz"; owner = "avrdudes";
sha256 = "sha256-wO9l2Y1gQMoLTytwDVFGPCoflGZUQfOdFdl0Qtu3m1Q="; repo = pname;
rev = "v${version}";
sha256 = "sha256-T8MKrvBvFF3WFwBMIN75vCOS0khliHQI+GGQvCk7T1o=";
}; };
configureFlags = lib.optionals docSupport "--enable-doc"; nativeBuildInputs = [ cmake bison flex ];
buildInputs = [ bison flex libusb-compat-0_1 libelf libftdi1 readline ] buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]
++ lib.optionals docSupport [ texLive texinfo texi2html ]; ++ lib.optionals docSupport [ texLive texinfo texi2html ];
cmakeFlags = lib.optionals docSupport [
"-DBUILD_DOC=ON"
];
meta = with lib; { meta = with lib; {
description = "Command-line tool for programming Atmel AVR microcontrollers"; description = "Command-line tool for programming Atmel AVR microcontrollers";
longDescription = '' longDescription = ''