[Nix-dev] pass a text file on the internet through <>

Moritz Ulrich moritz at tarn-vedra.de
Tue Oct 11 17:34:56 CEST 2016


stewart mackenzie <setori88 at gmail.com> writes:

> Surely one should be able to pass text files over this medium?

Right now it's not, see the nix documentation:

"If a path in the Nix search path starts with http:// or https://, it is
interpreted as the URL of a tarball that will be downloaded and unpacked
to a temporary location. The tarball must consist of a single top-level
directory."

Also note that NIX_PATH (which is used with -I) might not be appropriate
for your use case, as it's explicitly documented as a list of
directories.

Maybe you can just use a separate argument and use `builtins.readFile`,
`builtins.fetchurl` or similar?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161011/f4dadb29/attachment.sig>


More information about the nix-dev mailing list