edolstra / nix-serve

A standalone Nix binary cache server
GNU Lesser General Public License v2.1
163 stars 37 forks source link

Pushing to nix-serve #18

Open DieracDelta opened 3 years ago

DieracDelta commented 3 years ago

Suppose I build package A on my computer and want to push it to the cache. With cachix, I would do nix build $REPO | cachix push $CACHE_NAME. Any idea how to achieve something similar with nix-serve? I don't see mention of this in the docs.

bzadm commented 9 months ago

This may be a bit late but you can always copy the result with nix copy and nix-copy-closure. This ofc requires your builder to have write access to the nix store of the cache.