graphene-hardened-malloc: 2024123000 -> 2025012700 (#378307)
[NixPkgs.git] / pkgs / development / misc / avr / libc / default.nix
bloba0e928ab2918c3def9fba71281fe2485cb38335c
2   lib,
3   stdenv,
4   fetchurl,
5   automake,
6   autoconf,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "avr-libc";
11   version = "2.2.1";
13   tag_version = builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version;
14   src = fetchurl {
15     url = "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-${finalAttrs.tag_version}-release/avr-libc-${finalAttrs.version}.tar.bz2";
16     hash = "sha256-AGpjBsu8k4w721g6xU+T/n18jPl/nN6R+RxvsCc6tGU=";
17   };
19   nativeBuildInputs = [
20     automake
21     autoconf
22   ];
24   # Make sure we don't strip the libraries in lib/gcc/avr.
25   stripDebugList = [ "bin" ];
26   dontPatchELF = true;
28   enableParallelBuilding = true;
30   passthru = {
31     incdir = "/avr/include";
32   };
34   meta = with lib; {
35     description = "C runtime library for AVR microcontrollers";
36     homepage = "https://github.com/avrdudes/avr-libc";
37     changelog = "https://github.com/avrdudes/avr-libc/blob/avr-libc-${finalAttrs.tag_version}-release/NEWS";
38     license = licenses.bsd3;
39     platforms = [ "avr-none" ];
40     maintainers = with maintainers; [
41       mguentner
42       emilytrau
43     ];
44   };