2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, automake, autoconf }:
|
2017-09-05 02:42:26 +00:00
|
|
|
|
2021-07-14 15:10:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "avr-libc";
|
2022-10-26 07:27:51 +00:00
|
|
|
version = "2.1.0";
|
2017-09-05 02:42:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-26 07:27:51 +00:00
|
|
|
url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${version}.tar.bz2";
|
|
|
|
sha256 = "1s2lnqsbr1zs7dvsbyyckay52lm8mbjjaqf3cyx5qpcbq3jwx10b";
|
2017-09-05 02:42:26 +00:00
|
|
|
};
|
|
|
|
|
2018-10-12 20:09:59 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf ];
|
2017-09-05 02:42:26 +00:00
|
|
|
|
|
|
|
# Make sure we don't strip the libraries in lib/gcc/avr.
|
2020-04-07 03:32:19 +00:00
|
|
|
stripDebugList = [ "bin" ];
|
2017-09-05 02:42:26 +00:00
|
|
|
dontPatchELF = true;
|
|
|
|
|
2018-10-15 21:11:20 +00:00
|
|
|
passthru = {
|
|
|
|
incdir = "/avr/include";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 02:42:26 +00:00
|
|
|
description = "a C runtime library for AVR microcontrollers";
|
2022-10-26 07:27:51 +00:00
|
|
|
homepage = "https://github.com/avrdudes/avr-libc";
|
2017-09-05 02:42:26 +00:00
|
|
|
license = licenses.bsd3;
|
2018-11-02 20:10:57 +00:00
|
|
|
platforms = [ "avr-none" ];
|
2022-10-26 07:27:51 +00:00
|
|
|
maintainers = with maintainers; [ mguentner emilytrau ];
|
2017-09-05 02:42:26 +00:00
|
|
|
};
|
|
|
|
}
|