[Nix-dev] Importing .narinfo into nix store.
Eelco Dolstra
eelco.dolstra at logicblox.com
Mon Dec 21 14:25:31 CET 2015
Hi,
On 21/12/15 01:38, Kevin Cox wrote:
> `nix-store --import` seems very close but it works on a different input
> format that includes all dependencies into a single file. Is there a
> similar command that can work with binary caches over the web?
Yes, "nix-store -r $storepath", e.g.
$ nix-store -r /nix/store/ln4j3vq4vkdh1fldjwqwjh49cl4l0q6k-hello-2.10 \
--option binary-caches http://my-cache.example.org
(This assumes that the calling user has sufficient privileges to specify
binary caches.)
Under the hood this runs the download-from-binary-cache substituter that
Vladimir mentioned.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list