aider-chat: refactor aider-chat to all-packages, add variants

This commit is contained in:
Chun Yu
2025-04-01 02:09:49 +08:00
parent 7cce75a6f3
commit 2164766ad2
2 changed files with 12 additions and 18 deletions
-18
View File
@@ -1,18 +0,0 @@
{
python3Packages,
withPlaywright ? false,
withBrowser ? false,
withHelp ? false,
withOptional ? false,
}:
if withPlaywright then
python3Packages.toPythonApplication python3Packages.aider-chat.passthru.withPlaywright
else if withBrowser then
python3Packages.toPythonApplication python3Packages.aider-chat.passthru.withBrowser
else if withHelp then
python3Packages.toPythonApplication python3Packages.aider-chat.passthru.withHelp
else if withOptional then
python3Packages.toPythonApplication python3Packages.aider-chat.passthru.withOptional
else
python3Packages.toPythonApplication python3Packages.aider-chat
+12
View File
@@ -170,6 +170,18 @@ with pkgs;
} ../build-support/setup-hooks/add-bin-to-path.sh
) { };
aider-chat = with python3Packages; toPythonApplication aider-chat;
aider-chat-with-playwright = with python3Packages; toPythonApplication (aider-chat.withOptional { withPlaywright = true; });
aider-chat-with-browser = with python3Packages; toPythonApplication (aider-chat.withOptional { withBrowser = true; });
aider-chat-with-help = with python3Packages; toPythonApplication (aider-chat.withOptional { withHelp = true; });
aider-chat-with-bedrock = with python3Packages; toPythonApplication (aider-chat.withOptional { withBedrock = true; });
aider-chat-full = with python3Packages; toPythonApplication (aider-chat.withOptional { withAll = true; });
autoreconfHook = callPackage (
{ makeSetupHook, autoconf, automake, gettext, libtool }:
makeSetupHook {