diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-06-28 01:24:34 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-06-28 01:24:34 +0200 |
commit | e3ce5d709f3ba6a3f3a94a24c20a9cd87e6bd07d (patch) | |
tree | 8b680281ba2e3f01d957d76f7918c30ce3b3ba0f /guix/http.scm | |
parent | e1e8874ee82cd9e7e6a8f04bb5144eeb69610b7f (diff) | |
download | gnu-guix-e3ce5d709f3ba6a3f3a94a24c20a9cd87e6bd07d.tar gnu-guix-e3ce5d709f3ba6a3f3a94a24c20a9cd87e6bd07d.tar.gz |
Add a declarative packaging layer.
* Makefile.am (MODULES): Add `guix/packages.scm' and `distro/base.scm'.
(TESTS): Add `tests/packages.scm'.
(EXTRA_DIST): New variable.
* guix/packages.scm, distro/base.scm, tests/packages.scm: New files.
* guix/http.scm (http-fetch): Make `name' an optional argument, to match
the expectations of `package-source-derivation'.
Diffstat (limited to 'guix/http.scm')
-rw-r--r-- | guix/http.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/http.scm b/guix/http.scm index 21234b388f..97ed3983f1 100644 --- a/guix/http.scm +++ b/guix/http.scm @@ -28,7 +28,8 @@ ;;; Code: (define* (http-fetch store url hash-algo hash - #:key name (system (%current-system))) + #:optional name + #:key (system (%current-system))) "Return the path of a fixed-output derivation in STORE that fetches URL, which is expected to have hash HASH of type HASH-ALGO (a symbol). By default, the file name is the base name of URL; optionally, NAME can specify |