mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
6ff5b79096
This reverts commit b2844f89d1
.
It broke simavr:
$ nix-build -A simavr
[...]
/nix/store/3k4djrsq23m2yg9ar4h1lkkz1ijv0ghv-avr-binutils-2.41/bin/avr-ld: /nix/store/3rpyzla18mbj690hv7j5dang0kd3c1fq-avr-libc-avr-2.1.0/avr/lib/libc.a(vfprintf_std.o): in function `.L15':
vfprintf.c:(.text.avr-libc+0xd8): undefined reference to `__mulqi3'
/nix/store/3k4djrsq23m2yg9ar4h1lkkz1ijv0ghv-avr-binutils-2.41/bin/avr-ld: /nix/store/3rpyzla18mbj690hv7j5dang0kd3c1fq-avr-libc-avr-2.1.0/avr/lib/libc.a(vfprintf_std.o): in function `.L18':
vfprintf.c:(.text.avr-libc+0xe4): undefined reference to `__mulqi3'
collect2: error: ld returned 1 exit status
make[1]: *** [../Makefile.common:161: atmega644_adc_test.axf] Error 1
make[1]: Leaving directory '/build/source/tests'
make: *** [Makefile:21: build-tests] Error 2
Fixes #295610.
32 lines
819 B
Nix
32 lines
819 B
Nix
{ 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";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|