diff --git a/pkgs/development/misc/avr/libc/default.nix b/pkgs/development/misc/avr/libc/default.nix index 654f2382ca3f..c2b35ed72204 100644 --- a/pkgs/development/misc/avr/libc/default.nix +++ b/pkgs/development/misc/avr/libc/default.nix @@ -2,11 +2,12 @@ stdenv.mkDerivation rec { pname = "avr-libc"; - version = "2.1.0"; + version = "2.2.0"; + tag_version = builtins.replaceStrings ["."] ["_"] version; src = fetchurl { - url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${version}.tar.bz2"; - sha256 = "1s2lnqsbr1zs7dvsbyyckay52lm8mbjjaqf3cyx5qpcbq3jwx10b"; + url = "https://github.com/avrdudes/avr-libc/releases/download/avr-libc-${tag_version}-release/avr-libc-${version}.tar.bz2"; + hash = "sha256-Bxjv1PVCeId9ploLIDtAIHOzDgTf6piObyqINa0HHTU="; }; nativeBuildInputs = [ automake autoconf ];