Binary Cache: Difference between revisions

imported>Aleb
Detail how to check the signing on the fly
imported>Aleb
Section about how to populate the cache
Line 126: Line 126:
/nix/store/gdh8165b7rg4y53v64chjys7mbbw89f9-hello-2.10
/nix/store/gdh8165b7rg4y53v64chjys7mbbw89f9-hello-2.10
</syntaxhighlight>
</syntaxhighlight>
== Populating a binary cache ==
As the cache is served from the nix store of the machine serving the binary cache, one option is to build the packages directly on that machine.
Another option is to build the packages on a separate machine and push them only when all the checks pass using {{ic|nix copy}}:
<syntaxhighlight lang="bash">
$ nix copy --to ssh://binarycache.example.com PACKAGE
</syntaxhighlight>
For details see the [https://nixos.org/nix/manual/#sec-sharing-packages Sharing Packages Between Machines] in the Nix manual.


== See also ==
== See also ==


<references group="cf."/>
<references group="cf."/>