about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/misc/avr/libc/default.nix
blob: d7e9f0efe9992ded07c19404a8cb00133ad14bd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchurl, automake, autoconf }:

stdenv.mkDerivation rec {
  pname = "avr-libc";
  version = "2.1.0";

  src = fetchurl {
    url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${version}.tar.bz2";
    sha256 = "1s2lnqsbr1zs7dvsbyyckay52lm8mbjjaqf3cyx5qpcbq3jwx10b";
  };

  nativeBuildInputs = [ automake autoconf ];

  # Make sure we don't strip the libraries in lib/gcc/avr.
  stripDebugList = [ "bin" ];
  dontPatchELF = true;

  enableParallelBuilding = true;

  passthru = {
    incdir = "/avr/include";
    libdir = "/avr/lib";
  };

  meta = with lib; {
    description = "a C runtime library for AVR microcontrollers";
    homepage = "https://github.com/avrdudes/avr-libc";
    license = licenses.bsd3;
    platforms = [ "avr-none" ];
    maintainers = with maintainers; [ mguentner emilytrau ];
  };
}