[Nix-dev] Importing .narinfo into nix store.
Kevin Cox
kevincox at kevincox.ca
Mon Dec 21 01:38:46 CET 2015
Hello everyone,
I have been trying to get a cluster of computers set up running Nix and
it has been working really well so far. However I am trying to do
something possible a little strange and was looking for a little help
or suggestions for alternative methods of accomplishing my goal.
I am trying to get a method for downloading the dependencies of a
program and run it. This is similar to `nix-shell` but I want to use
precompiled binaries exclusively instead of downloading a Nix
expression and evaluating it.
I have most of the pieces in place, I can build my program and use nix-
push to generate a binary cache of the program as well as all of its
dependencies. This basically leaves me with a file called hash.narinfo
in my binary cache. I feel like it should be fairly easy to use that
file to pull down all of the dependencies required into the nix store
so that my program can run, however I can't find a way to do this.
`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?
I hope my rambling made sense, and thanks for any suggestions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151220/7e406cba/attachment.bin
More information about the nix-dev
mailing list