mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
6a458c169b
- avr-gcc 5.3.0 -> 5.4.0 closes #28220 Since the packages do not share a common prefix anymore, you need to define the current store paths in your project's Makefile. Example for an atmega644 build: CFLAGS += -I /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/include CFLAGS += -B /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5 CFLAGS += -L /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5 CFLAGS += -L /nix/store/8409dj9js4i5901i63275wxdm783l0p6-avr-gcc-5.4.0/lib/gcc/avr/5.4.0/avr5
23 lines
594 B
Nix
23 lines
594 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
let
|
|
version = "2.26";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "avr-binutils-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/binutils/binutils-${version}.tar.bz2";
|
|
sha256 = "1ngc2h3knhiw8s22l8y6afycfaxr5grviqy7mwvm4bsl14cf9b62";
|
|
};
|
|
configureFlags = "--target=avr --enable-languages=c,c++";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "the GNU Binutils for AVR microcontrollers";
|
|
homepage = http://www.gnu.org/software/binutils/;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ mguentner ];
|
|
};
|
|
}
|