Merge pull request #195517 from wegank/avrdude-darwin
avrdude: fix build on aarch64-darwin
This commit is contained in:
commit
56a2ea8db4
1 changed files with 12 additions and 6 deletions
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue