I started packaging several packages over the last week, and I would like to setup a r-ryantm style bot to automatically detect GitHub releases and update that given set of packages.
It would be nice to know where to start, I’ve already checked the deployment of nix-community/infra for r-ryantm bot but that seems to update everything, where I would like a limited set as I mentioned before,
If you’re serious about replicating what nix-community/infra does, this is the key file: infra/hosts/build02/nixpkgs-update.nix at 6de657cc41b71173ed2feef0ad0284c7ec364799 · nix-community/infra · GitHub
The architecture is that there are one or more fetchers, simple scripts or programs that output lists of packages to update in an attrpath old-version new-version
format (you can use 0
and 1
for old and new versions if your fetcher doesn’t know them) into a shared directory, and then a supervisor script consumes those lists into a priority queue that it uses to dispatch to one or more workers that actually do the r-ryantm stuff.
To customize this, you could write your own fetcher with whatever logic you want, or you could use our GitHub fetcher and pipe it through something that filters the package set down to what you want.
1 Like