Files
nixpkgs/pkgs/by-name/av/avrlibc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.1 KiB
Nix

{
lib,
stdenvNoLibc,
fetchurl,
automake,
autoconf,
}:
stdenvNoLibc.mkDerivation (finalAttrs: {
pname = "avr-libc";
version = "2.2.1";
tag_version = builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version;
src = fetchurl {
url = "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-${finalAttrs.tag_version}-release/avr-libc-${finalAttrs.version}.tar.bz2";
hash = "sha256-AGpjBsu8k4w721g6xU+T/n18jPl/nN6R+RxvsCc6tGU=";
};
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 = "C runtime library for AVR microcontrollers";
homepage = "https://github.com/avrdudes/avr-libc";
changelog = "https://github.com/avrdudes/avr-libc/blob/avr-libc-${finalAttrs.tag_version}-release/NEWS";
license = licenses.bsd3;
platforms = [ "avr-none" ];
maintainers = with maintainers; [
mguentner
emilytrau
];
};
})