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