paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
17.67k stars 1.65k forks source link

[request] Add to nixpkgs #544

Closed t56k closed 2 weeks ago

t56k commented 5 months ago

Any interest in this being added to nixpkgs for Nix and NixOS?

clementpoiret commented 5 months ago

Would be awesome :)

paul-gauthier commented 5 months ago

Having aider available in nixpkgs sounds nice, but it's probably not something I would have time to work on in the near term.

t56k commented 4 months ago

I've made a Nix flake which gets aider up and running in a local devshell--happy to post it if there's interest (or fork the branch or whatever). I don't use Python enough to have an established methodology for repackaging from Pypi (i.e., everything I tried would fail) so this will have to do for now.

rehno-lindeque commented 4 months ago

I've made a Nix flake which gets aider up and running in a local devshell--happy to post it if there's interest

@t56k Can't hurt, would you mind?

Not really sure if it's something I'll tackle, but aider has piqued my interest and trying out with a flake might motivate me to package.

giodamelio commented 3 months ago

I got aider packaged using dream2nix to try it out today. It's not pretty, and definitely not anywhere close to being ready to go into nixpkgs, but it is usable.

Package source in my dotfiles: https://github.com/giodamelio/nixos-configs/blob/main/src/packages/aider.nix

You can also try it quickly via my flake:

$ nix run github:giodamelio/nixos-configs#aider
rehno-lindeque commented 3 months ago

Another quick alternative, but note that it's just an experiment. I'm somewhat unlikely to update it beyond the current revision of aider (~v0.35.1-dev~ v0.44.0). Only tested on x64-64_linux.

$ nix run github:paul-gauthier/aider/pull/608/head#aider
unchainedio commented 2 months ago

please add aider to nixpackages

paul-gauthier commented 2 months ago

I'm open to a PR that would automate publishing aider releases to nix. I just don't use nix and would have to figure it all out from scratch.

c-p-b commented 1 month ago

I got aider packaged using dream2nix to try it out today. It's not pretty, and definitely not anywhere close to being ready to go into nixpkgs, but it is usable.

Package source in my dotfiles: https://github.com/giodamelio/nixos-configs/blob/main/src/packages/aider.nix

You can also try it quickly via my flake:

$ nix run github:giodamelio/nixos-configs#aider

I got a slightly modified version of this working. What I had to do:

rehno-lindeque commented 1 month ago

I'm open to a PR that would automate publishing aider releases to nix. I just don't use nix and would have to figure it all out from scratch.

I don't think you need to do anything like that @paul-gauthier. (Honestly, not your responsibility)

I believe the options for people who want this are:

  1. Someone who is willing to be a nix package maintainer can attempt to get all the packages in #608 updated and merged into nixpkgs via pull requests.
    • Side-note: afaik I don't think any dream2nix packages are in nixpkgs right now, so I think my PR above is the closest thing.
    • Help can be attained on the nix discourse, etc
  2. Go upvote https://github.com/NixOS/nixpkgs/issues/330726 and hope some good soul decides to volunteer
  3. Use someone else's package definition
jevy commented 1 month ago

Bounty posted here: https://discourse.nixos.org/t/50-packaging-bound-aider/49867

Spent 6 hours on it and I just want it works :sob:

arilotter commented 3 weeks ago

It got merged 17 hours ago! :saluting_face: https://github.com/NixOS/nixpkgs/pull/323927

paul-gauthier commented 2 weeks ago

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

mjrusso commented 2 weeks ago

Can confirm that the aider-chat package works. (Great timing; I've been meaning to try this out for awhile now :) Thanks to everyone involved!