Add Nix flake for development and build/run support#190
Conversation
|
I'm not familiar with nix flakes, cc @krisajenkins (I remember mentioning you had done something like this) or @YPares are either of you able to review this? Is this something that needs to be checked into this repo or is there another canonical way to register nix flakes? |
|
@agavra It doesn't need to, but it can be useful to have it locally (the point of Nix flakes is that any git repo can be its own "package registry"), as long as it can be properly maintained. That being said: @ysndr Note that (and I've been using it as a devshell to work on The advantages is that it is automatically updated everyday by the llm-agents.nix CI, and that the builds are cached publicly ( https://github.com/numtide/llm-agents.nix?tab=readme-ov-file#binary-cache ). |
|
Thanks @YPares for filling the picture. Good thinking on the cache part though. The way I see it if this project wants to encourage nix users, these are the options:
Any combination of these (or none of them) are a valid choice. That said, if you want to go forward with this PR I'd need to drop the result link and add |
|
👍 let's add instructions to use numtides flake but we can also keep the local flake as well. Thanks for chiming in @YPares |
|
Ok :) |
The main benefits are
It fairly common alternative, along with crates2nix (better caching more overhead for cargo dep changes). If you prefer vanilla nixpkgs I can throw naersk out as well. |
|
@ysndr No it looks simple enough :) thanks for the answer! |
Adds a nix flake so that nix users can build and run tuicr with
nix build github:agavra/tuicr # or nix run github:agavra/tuicrrespectively.