guix-play/guix/scripts
Ludovic Courtès fe0cff14f6 substitute-binary: Implement `--substitute'.
This allows build outputs to be transparently downloaded from
http://hydra.gnu.org, for example.

* config-daemon.ac: Check for `gzip', `bzip2', and `xz'.
* guix/config.scm.in (%gzip, %bzip2, %xz): New variable.
* guix/scripts/substitute-binary.scm (fetch): Return SIZE as a second value.
  (<narinfo>): Change `url' to `uri'.
  (make-narinfo): Rename to...
  (narinfo-maker): ... this.  Handle relative URLs.
  (fetch-narinfo): Adjust accordingly.
  (filtered-port, decompressed-port): New procedures.
  (guix-substitute-binary): Implement the `--substitute' case.
* tests/store.scm ("substitute query"): Use (%store-prefix) instead
  of (getenv "NIX_STORE_DIR").
  ("substitute"): New test.
2013-04-12 17:31:01 +02:00
..
build.scm ui: Add a `warning' macro. 2013-04-11 22:30:06 +02:00
download.scm ui: Add a `warning' macro. 2013-04-11 22:30:06 +02:00
gc.scm ui: Add a `warning' macro. 2013-04-11 22:30:06 +02:00
import.scm scripts: Remove hyphen in the command name shown by `--version'. 2013-02-17 22:19:32 +01:00
package.scm ui: Add a `warning' macro. 2013-04-11 22:30:06 +02:00
pull.scm pull: Switch to the cgit URL. 2013-03-31 12:46:28 +02:00
substitute-binary.scm substitute-binary: Implement `--substitute'. 2013-04-12 17:31:01 +02:00