at 24.11-pre 31 lines 819 B view raw
1{ lib, stdenv, fetchurl, automake, autoconf }: 2 3stdenv.mkDerivation rec { 4 pname = "avr-libc"; 5 version = "2.1.0"; 6 7 src = fetchurl { 8 url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${version}.tar.bz2"; 9 sha256 = "1s2lnqsbr1zs7dvsbyyckay52lm8mbjjaqf3cyx5qpcbq3jwx10b"; 10 }; 11 12 nativeBuildInputs = [ automake autoconf ]; 13 14 # Make sure we don't strip the libraries in lib/gcc/avr. 15 stripDebugList = [ "bin" ]; 16 dontPatchELF = true; 17 18 enableParallelBuilding = true; 19 20 passthru = { 21 incdir = "/avr/include"; 22 }; 23 24 meta = with lib; { 25 description = "a C runtime library for AVR microcontrollers"; 26 homepage = "https://github.com/avrdudes/avr-libc"; 27 license = licenses.bsd3; 28 platforms = [ "avr-none" ]; 29 maintainers = with maintainers; [ mguentner emilytrau ]; 30 }; 31}