download: Keep only 2 store items for all the downloads.
authorLudovic Courtès <ludo@gnu.org>
Fri, 28 Aug 2015 22:48:35 +0000 (00:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 28 Aug 2015 23:22:54 +0000 (01:22 +0200)
commitced200328ca6337ac446e4557c645629e7d7a997
tree86338f3e4132c6724e1ea7a6c4b258309a81a074
parent0309e1b0ba9764746fc99c6ee02917c585ea8579
download: Keep only 2 store items for all the downloads.

This significantly reduces churn in the store.  It also reduces run time
of 'guix build inkscape -Sd' by ~10%.

* guix/download.scm (url-fetch)[mirror-file]: New variable.
  [builder]: Get URL from the "guix download url" env. var.  Get the mirrors
  from MIRROR-FILE.  Pass #:script-name and #:env-vars to 'gexp->derivation'.
guix/download.scm