2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, automake, autoconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "avr-libc";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
tag_version = builtins.replaceStrings ["."] ["_"] finalAttrs.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-${finalAttrs.tag_version}-release/avr-libc-${finalAttrs.version}.tar.bz2";
|
|
|
|
hash = "sha256-AGpjBsu8k4w721g6xU+T/n18jPl/nN6R+RxvsCc6tGU=";
|
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;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
|
|
|
incdir = "/avr/include";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C runtime library for AVR microcontrollers";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://github.com/avrdudes/avr-libc";
|
2024-10-04 16:56:33 +00:00
|
|
|
changelog = "https://github.com/avrdudes/avr-libc/blob/avr-libc-${finalAttrs.tag_version}-release/NEWS";
|
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
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
})
|