diff --git a/pkgs/by-name/ai/aider-chat/package.nix b/pkgs/by-name/ai/aider-chat/package.nix index bf3cfc8d4f8e..a53fda1cb47e 100644 --- a/pkgs/by-name/ai/aider-chat/package.nix +++ b/pkgs/by-name/ai/aider-chat/package.nix @@ -3,6 +3,7 @@ stdenv, python312Packages, fetchFromGitHub, + fetchpatch, replaceVars, gitMinimal, portaudio, @@ -151,6 +152,13 @@ let (replaceVars ./fix-flake8-invoke.patch { flake8 = lib.getExe python3Packages.flake8; }) + + # https://github.com/Aider-AI/aider/pull/4671 + (fetchpatch { + name = "add-new-exceptions-to-LiteLLMExceptions.patch"; + url = "https://github.com/Aider-AI/aider/commit/7201abc56539ae8ee2bf4ea0926f584c9ec5558c.patch"; + hash = "sha256-bjL9nbEQGGNkFczm1hDOMP3b48eRJk17zcivXjOdVnw="; + }) ]; disabledTestPaths = [