download: Add HTTPS support.
authorLudovic Courtès <ludo@gnu.org>
Sun, 20 Jan 2013 21:28:38 +0000 (22:28 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 20 Jan 2013 21:54:36 +0000 (22:54 +0100)
commit483f11589efe7f9bfab561dc48f26b01096e7996
tree26c6cf1d3410033063753bc1c73029e1f1995921
parente509d1527d231b6460a20762e13b57cba2e43485
download: Add HTTPS support.

* guix/build/download.scm: Autoload (gnutls).
  (tls-wrap): New procedure.
  (open-connection-for-uri): Add support for `https'.  Wrap the socket
  with `tls-wrap' in that case.
  (url-fetch): Add `https'.
* guix/download.scm (gnutls-derivation): New procedure.
  (url-fetch)[need-gnutls?]: New variable.
  Call `gnutls-derivation' when NEED-GNUTLS? is true, and add its output
  to the `GUILE_LOAD_PATH' env. var. in that case.
guix/build/download.scm
guix/download.scm