ggozad / oterm

a text-based terminal client for Ollama
MIT License
976 stars 58 forks source link

AUR/Nix package #16

Closed Soliprem closed 8 months ago

Soliprem commented 9 months ago

it'd be nice, since ollama is present on the AUR, to make an oterm AUR package. From what I understand, it shouldn't be too hard. In the future maybe nix would be nice, too?

ggozad commented 9 months ago

I am not using either so would find it hard to keep maintaining those. But I would be more than happy to accept a PR if you feel like it.

DanielChesters commented 9 months ago

Hi, I'd just add an PKGBUILD on AUR : https://aur.archlinux.org/packages/oterm

Soliprem commented 9 months ago

That settles it for the AUR. For nix, I'm absolutely ignorant about it, so I can't do much with it

ggozad commented 9 months ago

@DanielChesters Thank you that's awesome! I would guess that this would be best done as a GitHub action. I need to make one for brew, @DanielChesters would you be willing to do the work to automate creating the PKGBUILD on release?

DanielChesters commented 9 months ago

@ggozad I could check that, I will do that when I have time

suhr commented 9 months ago

Here's a flake for Nix: https://gist.github.com/suhr/49139b2a2b18818cc5a967c0f2b1bfcb.

ggozad commented 9 months ago

@suhr Thanks for this! So now we have AUR and Nix 🎉 I would really like to finish this, having an easy update path for Arch and Nix would be awesome.

Ideally there should be an automatic way to update both when a new version is released. For example, for brew on MacOS I use https://github.com/tdsmith/homebrew-pypi-poet which will parse the package on PyPI, extract pinned dependencies, hashes etc and give me the formula. You can see this here: https://github.com/ggozad/homebrew-formulas/blob/main/Formula/oterm.rb

Is there something similar for Arch and Nix?

If we had something like that, we could just add it to GitHub actions and automate the process. Otherwise I would have to rely on you committing to perform any updates every time I make a new release which is fine but awkward long-term...

suhr commented 9 months ago

Is there something similar for Arch and Nix?

The flake.nix is something you put into the root of the project, so it's always up to date with the project. I can also make a package in nixpkgs, and nixpkgs has a bot that tracks updates.

suhr commented 9 months ago

And here it is: https://github.com/NixOS/nixpkgs/pull/274759.

ggozad commented 8 months ago

@suhr is this now automatically maintained? Can I close this?

suhr commented 8 months ago

Sure.