2018-10-12 20:09:59 +00:00
|
|
|
{ stdenv, fetchurl, automake, autoconf }:
|
2017-09-05 02:42:26 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.0.0";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "avr-libc-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-01 17:07:00 +00:00
|
|
|
url = https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2;
|
2017-09-05 02:42:26 +00:00
|
|
|
sha256 = "15svr2fx8j6prql2il2fc0ppwlv50rpmyckaxx38d3gxxv97zpdj";
|
|
|
|
};
|
|
|
|
|
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.
|
2018-10-15 21:11:20 +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";
|
|
|
|
};
|
|
|
|
|
2017-09-05 02:42:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "a C runtime library for AVR microcontrollers";
|
2018-12-01 17:32:32 +00:00
|
|
|
homepage = https://savannah.nongnu.org/projects/avr-libc/;
|
2017-09-05 02:42:26 +00:00
|
|
|
license = licenses.bsd3;
|
2018-11-02 20:10:57 +00:00
|
|
|
platforms = [ "avr-none" ];
|
2017-09-05 02:42:26 +00:00
|
|
|
maintainers = with maintainers; [ mguentner ];
|
|
|
|
};
|
|
|
|
}
|