nixpkgs/pkgs/development/misc/avr/libc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
785 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, automake, autoconf }:
2021-07-14 15:10:11 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "avr-libc";
2022-10-26 07:27:51 +00:00
version = "2.1.0";
src = fetchurl {
2022-10-26 07:27:51 +00:00
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;
passthru = {
incdir = "/avr/include";
};
meta = with lib; {
description = "a C runtime library for AVR microcontrollers";
2022-10-26 07:27:51 +00:00
homepage = "https://github.com/avrdudes/avr-libc";
license = licenses.bsd3;
platforms = [ "avr-none" ];
2022-10-26 07:27:51 +00:00
maintainers = with maintainers; [ mguentner emilytrau ];
};
}