2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, automake, autoconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "avr-libc";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "2.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-30 15:09:59 +00:00
|
|
|
url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${version}.tar.bz2";
|
|
|
|
sha256 = "1s2lnqsbr1zs7dvsbyyckay52lm8mbjjaqf3cyx5qpcbq3jwx10b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ automake autoconf ];
|
|
|
|
|
|
|
|
# Make sure we don't strip the libraries in lib/gcc/avr.
|
|
|
|
stripDebugList = [ "bin" ];
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
incdir = "/avr/include";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "a C runtime library for AVR microcontrollers";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://github.com/avrdudes/avr-libc";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "avr-none" ];
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = with maintainers; [ mguentner emilytrau ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|