Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12960,6 +12960,12 @@
githubId = 16027994;
name = "Nathan Viets";
};
nwjsmith = {
email = "nate@theinternate.com";
github = "nwjsmith";
githubId = 1348;
name = "Nate Smith";
};
nyanbinary = {
email = "vextium@skiff.com";
github = "nyabinary";
Expand Down
83 changes: 83 additions & 0 deletions pkgs/tools/llm/aider/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{ lib
, python3
, fetchFromGitHub
, universal-ctags
, portaudio
}:
let
version = "0.14.2";
in
python3.pkgs.buildPythonApplication rec {
pname = "aider";
format = "setuptools";
inherit version;

src = fetchFromGitHub {
owner = "paul-gauthier";
repo = "aider";
rev = "v${version}";
hash = "sha256-JDhpIMgA4Fa68XnuYdH0oSo5vswtwzOs5AeT46PVQbc=";
};

propagatedBuildInputs = with python3.pkgs; [
universal-ctags
aiohttp
aiosignal
async-timeout
attrs
backoff
certifi
charset-normalizer
configargparse
diskcache
frozenlist
gitdb
gitpython
idna
jsonschema
markdown-it-py
mdurl
multidict
networkx
numpy
openai
packaging
prompt-toolkit
pygments
pyyaml
requests
rich
scipy
smmap
sounddevice
soundfile
tiktoken
tqdm
urllib3
wcwidth
yarl
] ++ [
portaudio
universal-ctags
];

postPatch = ''
substituteInPlace aider/repomap.py \
--replace '"ctags"' '"${universal-ctags}/bin/ctags"'
'';

# Tests require a Git repository
doCheck = false;

pythonImportsCheck = [
"aider"
];

meta = with lib; {
changelog = "https://github.com/paul-gauthier/aider/raw/v${version}/HISTORY.md";
description = "AI pair programming in your terminal";
homepage = "https://github.com/paul-gauthier/aider";
license = licenses.asl20;
maintainers = with maintainers; [ nwjsmith ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ with pkgs;

adcli = callPackage ../os-specific/linux/adcli { };

aider = callPackage ../tools/llm/aider { };

alda = callPackage ../development/interpreters/alda { };

align = callPackage ../tools/text/align { };
Expand Down