diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-04-12 17:30:27 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-04-12 21:58:47 +0200 |
commit | cdf2022052268b9c517d486294ec34f0c18091aa (patch) | |
tree | 45a4ff01fe0186ce9835282b8d2451c55fa8e54e /nix-upstream | |
parent | f03f0c9a867e22dd999a8519f4bf03b182739c97 (diff) | |
download | guix-cdf2022052268b9c517d486294ec34f0c18091aa.tar.gz |
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.
Diffstat (limited to 'nix-upstream')
0 files changed, 0 insertions, 0 deletions