Commit 2164766a authored by Chun Yu's avatar Chun Yu
Browse files

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

parent 7cce75a6
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 {